Same name and namespace in other branches
- 4.6.x includes/menu.inc \menu_secondary_local_tasks()
- 4.7.x includes/menu.inc \menu_secondary_local_tasks()
- 6.x includes/menu.inc \menu_secondary_local_tasks()
- 7.x includes/menu.inc \menu_secondary_local_tasks()
- 8.9.x core/includes/menu.inc \menu_secondary_local_tasks()
Returns the rendered HTML of the secondary local tasks.
Related topics
File
- includes/
menu.inc, line 773 - API for the Drupal menu system.
Code
function menu_secondary_local_tasks() {
$local_tasks = menu_get_local_tasks();
$pid = menu_get_active_nontask_item();
$output = '';
if (count($local_tasks[$pid]['children'])) {
foreach ($local_tasks[$pid]['children'] as $mid) {
if (menu_in_active_trail($mid) && count($local_tasks[$mid]['children']) > 1) {
foreach ($local_tasks[$mid]['children'] as $cid) {
$output .= theme('menu_local_task', $cid, menu_in_active_trail($cid), FALSE);
}
}
}
}
return $output;
}