function redhen_activity_menu in RedHen CRM 7
Implements hook_menu().
File
- modules/
redhen_activity/ redhen_activity.module, line 156
Code
function redhen_activity_menu() {
$items = array();
$items['redhen/activity'] = array(
'title' => 'RedHen Activity',
'page callback' => 'redhen_activity_activity_page',
'access arguments' => array(
'access redhen activity',
),
'description' => 'View RedHen CRM activity.',
);
foreach (redhen_entity_types() as $entity_type => $path) {
$items['redhen/' . $path . '/%' . $entity_type . '/activity'] = array(
'title' => 'Activity',
'page callback' => 'redhen_activity_activity_page',
'page arguments' => array(
2,
$entity_type,
),
'access callback' => 'redhen_activity_access',
'access arguments' => array(
'view',
2,
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
}
return $items;
}