function forum_access_node_grants in Forum Access 6
Same name and namespace in other branches
- 8 forum_access.module \forum_access_node_grants()
- 5 forum_access.module \forum_access_node_grants()
- 7 forum_access.module \forum_access_node_grants()
Implementation of hook_node_grants().
This function supplies the forum access grants. forum_access simply uses roles as ACLs, so rids translate directly to gids.
File
- ./
forum_access.module, line 17 - forum_access.module
Code
function forum_access_node_grants($user, $op) {
$grants['forum_access'] = array_keys($user->roles);
return $grants;
}