diff options
Diffstat (limited to 'modules/node/node.api.php')
-rw-r--r-- | modules/node/node.api.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.api.php b/modules/node/node.api.php index a9881d5ee..6d14a0737 100644 --- a/modules/node/node.api.php +++ b/modules/node/node.api.php @@ -393,7 +393,7 @@ function hook_node_grants_alter(&$grants, $account, $op) { if ($op != 'view' && !empty($restricted)) { // Now check the roles for this account against the restrictions. foreach ($restricted as $role_id) { - if (isset($user->roles[$role_id])) { + if (isset($account->roles[$role_id])) { $grants = array(); } } @@ -709,8 +709,8 @@ function hook_node_update($node) { * @param $node * The node being indexed. * - * @return - * Array of additional information to be indexed. + * @return string + * Additional node information to be indexed. * * @ingroup node_api_hooks */ |