function mandrill_activity_menu in Mandrill 7.2
Same name and namespace in other branches
- 7 modules/mandrill_activity/mandrill_activity.module \mandrill_activity_menu()
Implements hook_menu().
File
- modules/
mandrill_activity/ mandrill_activity.module, line 50 - Main module functions for mandrill_activity.
Code
function mandrill_activity_menu() {
$items = array();
$mandrill_activity_entities = mandrill_activity_load();
foreach ($mandrill_activity_entities as $mandrill_activity_entity) {
$arg = substr_count($mandrill_activity_entity->entity_path, '/');
$items[$mandrill_activity_entity->entity_path . '%entity_object/mandrill_activity'] = array(
'title' => 'Mandrill Activity',
'load arguments' => array(
$mandrill_activity_entity->entity_type,
),
'page callback' => 'mandrill_activity_page',
'page arguments' => array(
$arg,
$mandrill_activity_entity,
),
'access callback' => 'mandrill_activity_access',
'access arguments' => array(
$mandrill_activity_entity,
),
'type' => MENU_LOCAL_TASK,
);
}
return $items;
}