O'Reilly logo

Drupal 7 Module Development by Ken Rickard, John Wilkins, Larry Garfield, Matt Butcher, Greg Dunlap, Matt Farina

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Modifying the behavior of other modules

Our choice of Role Access as a sample module was deliberate for two reasons: first, we can ignore the data storage issue discussed above; second, the role system gives us a good opportunity to look at how other modules may modify the behavior of node access modules.

If you saved and installed the Role Access code to this point, you will see that it works just fine, but with two potential issues.

  • For most sites, anonymous users are not allowed to create content but they are allowed to view content. Since Role Access restricts the View operation to users with the same role, this would mean that anonymous users cannot view any content.
  • All custom roles are also tagged as authenticated users (role id 2). This means ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required