function ad_ui_menu_local_tasks_alter in Advertisement 7.2
Implements hook_menu_local_tasks_alter().
File
- ./
ad_ui.module, line 139
Code
function ad_ui_menu_local_tasks_alter(&$data, $router_item, $root_path) {
// Add action link to 'admin/ad/add' on 'admin/ad' page.
if ($root_path == 'admin/ad') {
$item = menu_get_item('admin/ad/add');
if ($item['access']) {
$item['title'] = t('Add an advertisement');
$data['actions']['output'][] = array(
'#theme' => 'menu_local_action',
'#link' => $item,
);
}
}
}