function bat_event_menu_local_tasks_alter in Booking and Availability Management Tools for Drupal 7
Implements hook_menu_local_tasks_alter().
File
- modules/
bat_event/ bat_event.module, line 1017 - Manage Events - Events store the EventValue of a Unit over a period of time.
Code
function bat_event_menu_local_tasks_alter(&$data, $router_item, $root_path) {
// Add action link 'admin/bat/units/add' on 'admin/bat/units'.
if ($root_path == 'admin/bat/events') {
$item = menu_get_item('admin/bat/events/add');
if ($item['access']) {
$data['actions']['output'][] = array(
'#theme' => 'menu_local_action',
'#link' => $item,
);
}
}
}