By tomrenner on
What is the way to add a new menu-item-tab to the path "node/%/edit", when % means my node-id? And if so, can I restrict this additional item to a certain content-type?
What is the way to add a new menu-item-tab to the path "node/%/edit", when % means my node-id? And if so, can I restrict this additional item to a certain content-type?
Comments
solved
ok - i found out myself ;-)
in case anybody else is concerned:
$items[] = array('path' => 'node/'. arg(1) .'/mypage',
'title' => t('My Page'),
'callback' => 'mymodule_form',
'callback arguments' => array('node', arg(1)),
'access' => TRUE,
'type' => MENU_LOCAL_TASK,
);
i want to add new tab in user account page...
hey i am new to drupal, i want to add webform page on account page so from that page user will redirect to webform.
Use can use below code
You can use this code to add new Tab in user account section.