I've tried with my custom module to implement hook_menu_local_tasks_alter, but I'm not sure how can I edit specific tab.
Here's my example code:
function my_module_menu_local_tasks_alter(&$data, $router_item, $root_path) {
$data['tabs']['0']['output']['0']['#access'] = FALSE;
//krumo($data);
}
With this code I can hide the first tab, but that does on all pages.
When I'm using hook_form_alter and with krumo(form_id) I can see what form is and I'm using switch statement to edit specific form. Is it possible to do this or something similar with tabs?
I'm not using CSS in this case, because I like to change the name of the tabs on specific pages too.
$router_item
hook_menu_alter()
and use$items['node/%/view']['type'] = MENU_NORMAL_ITEM;
(or something like that) instead