I'm trying to alter tab names ("view current" and "edit current") but it is just not working.
function MY_MODULE_custom_menu_alter(&$items) {
$items['node/%node/view']['title'] = t('View Event');
$items['node/%node/edit']['title'] = t('Edit Event');
}
Module implementation is good. Cache is cleared. Tried it milion times, but still nothing!
Wondering is it possible that this code is being overriden somewhere, and how can I check that?
drupal_set_message('blah');
in, and clear the caches through the UI, do you see the message?drupal_set_message('blah');
in hook_menu_alter and clear cache, I see msg however only here: /admin/config/development/performance.hook_menu_alter()
will only be invoked when the caches are cleared (not on every page). The hook's definitely firing then, so it's something else.