function forum_access_node_grants in Forum Access 7
Same name and namespace in other branches
- 8 forum_access.module \forum_access_node_grants()
- 5 forum_access.module \forum_access_node_grants()
- 6 forum_access.module \forum_access_node_grants()
Implements 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 194 - forum_access.module
Code
function forum_access_node_grants($user, $op) {
$grants['forum_access'] = array_keys($user->roles);
return $grants;
}