Commit 2a8fc4ed authored by Dries's avatar Dries

- Patch #672068 by jhodgdon: hook_node_grants() example used wrong variable.

parent b7aece63
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment