How can i add a new tab in user edit page. In user view page it is coming , but user edit page is not giving any result.
function usermail_menu() {
$items = array();
$items['user/%/invoice'] = array(
'type' => MENU_LOCAL_TASK,
'title' => 'Subscription Invoice',
'page callback' => 'usermail_invoice',
'access callback' => 'user_is_logged_in',
'weight' => 3
);
return $items;
}
This is working correctly. For user edit page i changed the path as
function usermail_menu() {
$items = array();
$items['user/%/edit/invoice'] = array(
'type' => MENU_LOCAL_TASK,
'title' => 'Subscription Invoice',
'page callback' => 'usermail_invoice',
'access callback' => 'user_is_logged_in',
'weight' => 3
);
return $items;
}
But it is not coming. Please help me. Do i want to add something else?