function redhen_relation_role_access in RedHen CRM 7
Access callback for viewing and managing relations roles.
Parameters
sring $op: Operation.
null $entity: Entity.
null $account: Account.
null $entity_type: Entity type.
Return value
bool Access grant.
1 string reference to 'redhen_relation_role_access'
- redhen_relation_entity_info in modules/
redhen_relation/ redhen_relation.module - Implements hook_entity_info().
File
- modules/
redhen_relation/ redhen_relation.module, line 281 - Redhen CRM Relation Module.
Code
function redhen_relation_role_access($op, $entity = NULL, $account = NULL, $entity_type = NULL) {
// TODO: Is this ever not true?
if ($op == 'view') {
return TRUE;
}
else {
return user_access('administer relation roles', $account);
}
}