| [ Index ] |
PHP Cross Reference of Drupal 6 (gatewave) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 47 lines (1 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| hook_node_grants_alter(&$grants, $account, $op) X-Ref |
| Alter user access rules when trying to view, edit or delete a node. Node access modules establish rules for user access to content. hook_node_grants() defines permissions for a user to view, edit or delete nodes by building a $grants array that indicates the permissions assigned to the user by each node access module. This hook is called to allow modules to modify the $grants array by reference, so the interaction of multiple node access modules can be altered or advanced business logic can be applied. This is a backport of the hook with the same name in Drupal 7 core. If this hook is invoked to determine if the anonymous user can access a node regardless of context, the $account->xmlsitemap_node_access will be TRUE. param: &$grants param: $account param: $op |
| Generated: Thu Mar 24 11:18:33 2011 | Cross-referenced by PHPXref 0.7 |