I AM TRYING TO SHOW A 3 LEVEL TAB ON THE USER PROFILE , BUT I JUST CANT FIND A WAY OF DOING IT.
I MANNED TO GET SECOND LEVEL WORK BUT NOT 3,THIRD LEVEL IS WHAT I NEED.
below is what i have.

/**
 *patners page with all the tabs
*/
$items['user/%user/patners'] = array(
'title' => t('My deals'),
'description' => t('this is to show patners ther items'),
'page callback' => 'patners_page',
'page arguments' => array(1),
'access arguments' => TRUE,
'type' =>MENU_LOCAL_TASK,
'weight'=>-18,
);
$items['user/%user/patners/coupon'] = array(
'title' =>'купоны',
'page callback' => 'patners_page',
'page arguments' => array(1),
'access callback' => TRUE,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['user/%user/patners/statistics'] = array(
'title' => 'Статистик',
'page callback' => 'partners_statistics',
'page arguments' => array(1),
'access callback' => TRUE,
'type' => MENU_LOCAL_TASK,
);

$items['user/%user/patners/coupon/all'] = array(
'title' =>'все купоны',
'page callback' => 'patners_page',
'page arguments' => array(1),
'access callback' => TRUE,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['user/%user/patners/coupon/used'] = array(
'title' =>'использованы',
'page callback' => 'patners_coupon_used',
'page arguments' => array(1),
'access callback' => TRUE,
'type' => MENU_LOCAL_TASK,
);
$items['user/%user/patners/coupon/pending'] = array(
'title' =>'Статус',
'page callback' => 'patners_pending_coupons',
'page arguments' => array(1),
'access callback' => TRUE,
'type' => MENU_LOCAL_TASK,
);

return $items;

Comments

chx’s picture

Yes, It is possible.

--
Drupal development: making the world better, one patch at a time. | A bedroom without a teddy is like a face without a smile.

mrcniceguy’s picture

@chx,Please explain how i can achieve this.

mrcniceguy’s picture

Anyone to Help me with This question??

Jevedor’s picture

hey mrcnuceguy,

looks like no one ever answered you, and I just ran into the same issue. I found this was the solution.

http://api.drupal.org/api/drupal/includes!menu.inc/function/menu_local_t...

In your theme you can print the level of menu_local_tasks using

print menu_local_tasks(2); 

NOTE: the level is indexed starting at 0

this only outputs the "li"s though so you will most likely need to wrap it in something like


$third_level_tabs = menu_local_tasks(2);
if (!empty($third_level_tabs)){
  print '<ul class="tabs tertiary">'.$third_level_tabs.'</ul>';
}
yevgeny.ananin’s picture

Thanks. This points me in the right direction. But I still don't understand where in my theme I should print the statement above. If my tabs/tasks are on a specific page, should I use a template file for that page?

mrcniceguy’s picture

@Jevedor thankx man, i will give a try.

sk2013’s picture

I have tried the methods shown here but it seems not working. Could anyone points me to a right direction.

It is well appreciated.

Thanks,
SK2013