[support] Alter user page menu local task
luca capra
luca.capra at gmail.com
Tue Oct 4 08:17:08 UTC 2011
Hi all,
I would alter the order and default local task on user page.
I'm trying using hook_menu_alter, with no luck (cache is flushed on each
request)
/**
* Implementation of hook_menu_alter().
*/
function mymodule_menu_alter(&$items) {
// dashboard is default
$items['user/%/dashboard']['weight'] = -10;
$items['user/%/dashboard']['type'] = MENU_DEFAULT_LOCAL_TASK;
$items['user/%']['type'] = MENU_LOCAL_TASK;
}
Is the right way to do it ?
thanks in advance,
Luca
More information about the support
mailing list