function redhen_relation_menu_alter in RedHen CRM 7
Implements hook_menu_alter().
File
- modules/
redhen_relation/ redhen_relation.module, line 81 - Redhen CRM Relation Module.
Code
function redhen_relation_menu_alter(&$items) {
// Relation_ui menu overrides.
// Use our own page title callback for relation/X pages.
$items['relation/%relation']['title callback'] = 'redhen_relation_page_title';
$items['relation/%relation']['access callback'] = 'redhen_relation_entity_access';
$items['relation/%relation']['access arguments'] = array(
'view',
1,
);
$items['relation/%relation/edit']['access callback'] = 'redhen_relation_entity_access';
$items['relation/%relation/edit']['access arguments'] = array(
'update',
1,
);
$items['relation/%relation/delete']['access callback'] = 'redhen_relation_entity_access';
$items['relation/%relation/delete']['access arguments'] = array(
'delete',
1,
);
}