function acl_node_grants in ACL 7
Same name and namespace in other branches
- 8 acl.module \acl_node_grants()
- 5 acl.module \acl_node_grants()
- 6 acl.module \acl_node_grants()
Implements hook_node_grants().
File
- ./
acl.module, line 299 - An API module providing by-user access control lists.
Code
function acl_node_grants($account, $op) {
$acl_ids = db_query("SELECT acl_id FROM {acl_user} WHERE uid = :uid", array(
'uid' => $account->uid,
))
->fetchCol();
return !empty($acl_ids) ? array(
'acl' => $acl_ids,
) : NULL;
}