SlideShare is now on Android. 15 million presentations at your fingertips.  Get the app

×
  • Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
 

Node Access in Drupal 7 (and Drupal 8)

by on Jul 25, 2012

  • 7,400 views

This talk will look at the features and changes in the Node Access system for Drupal 7....

This talk will look at the features and changes in the Node Access system for Drupal 7.

Out of the box, Drupal is a great system for creating and managing content. However, there are cases where your needs require additional requirements for which users can create, view, edit and delete content. To solve this problem, Drupal provides its Node Access system.

Node Access provides an API for determining the grants, or permissions, that a user has for each node. By understanding how these grants work, a module developer can create and enforce complex access rules.

We will cover some (or all) of the following topics.

- Node Access compared to user_access() and other permission checks.
- How Drupal grants node permissions.
- The node_access() function.
- hook_node_access() compared to {node_access}.
- Controlling permission to create content.
- Using hook_node_access().
- When to write a Node Access module.
- The {node_access} table and its role.
- Defining your moduleâs access rules.
- Using hook_node_access_records().
- Using hook_node_grants().
- Rebuilding the {node_access} table.
- Modifying the behavior of other modules.
- Using hook_node_access_records_alter().
- Using hook_node_grants_alter().
- Testing and debugging you module.
- Using Devel Node Access
- Roadmap for Drupal 8

Ken Rickard is the maintainer of the Domain Access module and wrote several of the patches for Node Access in Drupal 7.

Statistics

Views

Total Views
7,400
Views on SlideShare
7,313
Embed Views
87

Actions

Likes
4
Downloads
14
Comments
0

6 Embeds 87

http://www.nyccamp.org 49
http://nyccamp.org 28
http://avielmed 5
http://2012.nyccamp.org 3
http://nyccamp.com 1
https://duckduckgo.com 1

Accessibility

Categories

Upload Details

Uploaded via SlideShare as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
Post Comment
Edit your comment

Node Access in Drupal 7 (and Drupal 8) Node Access in Drupal 7 (and Drupal 8) Presentation Transcript