summaryrefslogtreecommitdiff
path: root/modules/node/node.api.php
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-01-04 20:34:28 +0000
committerDries Buytaert <dries@buytaert.net>2010-01-04 20:34:28 +0000
commit2a8fc4edb08cd26b8314fcaa3f34489ebdad9e61 (patch)
treece298b8b29d90c256811b58f08d755f8e80d94f2 /modules/node/node.api.php
parentb7aece63d084c85e84303959ec05d06da38f786e (diff)
downloadbrdo-2a8fc4edb08cd26b8314fcaa3f34489ebdad9e61.tar.gz
brdo-2a8fc4edb08cd26b8314fcaa3f34489ebdad9e61.tar.bz2
- Patch #672068 by jhodgdon: hook_node_grants() example used wrong variable.
Diffstat (limited to 'modules/node/node.api.php')
-rw-r--r--modules/node/node.api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/node/node.api.php b/modules/node/node.api.php
index ab1673b72..4eda704cb 100644
--- a/modules/node/node.api.php
+++ b/modules/node/node.api.php
@@ -28,7 +28,7 @@
* A node access module may implement as many realms as necessary to
* properly define the access privileges for the nodes.
*
- * @param $user
+ * @param $account
* The user object whose grants are requested.
* @param $op
* The node operation to be performed, such as "view", "update", or "delete".
@@ -45,7 +45,7 @@ function hook_node_grants($account, $op) {
if (user_access('access private content', $account)) {
$grants['example'] = array(1);
}
- $grants['example_owner'] = array($user->uid);
+ $grants['example_owner'] = array($account->uid);
return $grants;
}