diff options
author | webchick <webchick@24967.no-reply.drupal.org> | 2011-07-28 15:42:27 -0400 |
---|---|---|
committer | webchick <webchick@24967.no-reply.drupal.org> | 2011-07-28 15:42:27 -0400 |
commit | c6cc662e2df19c6c4bbfa75b6b730df64b1abce6 (patch) | |
tree | ca05f7d4e49484de375d9cbc4610bdf0c30a6eb6 /modules/node | |
parent | 4f972ee66f4486aa469899c1a46ee49e018865b0 (diff) | |
download | brdo-c6cc662e2df19c6c4bbfa75b6b730df64b1abce6.tar.gz brdo-c6cc662e2df19c6c4bbfa75b6b730df64b1abce6.tar.bz2 |
Issue #1209350 by mdupont: Fixed Node access rights doc should mention how to use query tags.
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.module | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/node/node.module b/modules/node/node.module index 6c32a2799..7ff8d0b65 100644 --- a/modules/node/node.module +++ b/modules/node/node.module @@ -2785,8 +2785,9 @@ function node_search_validate($form, &$form_state) { * hook_node_access() is not called on each node for performance reasons and for * proper functioning of the pager system. When adding a node listing to your * module, be sure to use a dynamic query created by db_select() and add a tag - * of "node_access" to ensure that only nodes to which the user has access - * are retrieved. + * of "node_access". This will allow modules dealing with node access to ensure + * only nodes to which the user has access are retrieved, through the use of + * hook_query_TAG_alter(). * * Note: Even a single module returning NODE_ACCESS_DENY from hook_node_access() * will block access to the node. Therefore, implementers should take care to |