4 Oct
2011
4 Oct
'11
10:17 a.m.
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