Hi.
I've created a module which displays a node instead of term-listing. If i call it without menu-modification all is ok. The "view" and "edit" tabs are displayed and teh breadcrumb is set correct.
But if i use "menu_set_location" to activate the corresponding menu-item the tabs aren't displayed anymore.
How can I set the active menu-item and display the tabs?
I tried to add
$items[] = array(
'path' => 'node/'. $nd->nid,
'title' => t('view'),
'callback' => 'node_page',
'access' => node_access('view', $nd),
'type' => MENU_CALLBACK
);
$items[] = array(
'path' => 'node/'. $nd->nid .'/view',
'title' => t('view'),
'access' => node_access('view', $nd),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -10
);
$items[] = array(
'path' => 'node/'. $nd->nid .'/edit',
'title' => t('edit'),
'callback' => 'node_page',
'access' => node_access('update', $nd),
'weight' => 1,
'type' => MENU_LOCAL_TASK
);
but it do not work ("access denied", even if "'access' => 1"). Changing "MENU_DEFAULT_LOCAL_TASK" to "MENU_LOCAL_TASK" displays the node but without tabs :-{
Any suggestions?
best regards,
Stefan