function content_access_node_grants in Content Access 6
Same name and namespace in other branches
- 8 content_access.module \content_access_node_grants()
- 5 content_access.module \content_access_node_grants()
- 7 content_access.module \content_access_node_grants()
Implementation of hook_node_grants().
File
- ./
content_access.module, line 77 - Content access module file.
Code
function content_access_node_grants($account, $op) {
return array(
'content_access_author' => array(
$account->uid,
),
'content_access_rid' => array_keys($account->roles),
);
}