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

merge-requests/26/head
Dries Buytaert 2010-01-04 20:34:28 +00:00
parent b7aece63d0
commit 2a8fc4edb0
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}