From e3e352ba272a34211bf9cf09b07797d5b5a3cdcf Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Thu, 28 Jul 2011 15:42:14 -0400
Subject: [PATCH] Issue #1209350 by mdupont: Fixed Node access rights doc
 should mention how to use query tags.

---
 modules/node/node.module | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/node/node.module b/modules/node/node.module
index 282a5e8918c8..7956bff7acc1 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
-- 
GitLab