menu_secondary_local_tasks

Versions
4.6 – 7
menu_secondary_local_tasks()

Returns the rendered local tasks at the second level.

Related topics

▾ 3 functions call menu_secondary_local_tasks()

garland_preprocess_page in themes/garland/template.php
Override or insert variables into the page template.
seven_preprocess_page in themes/seven/template.php
theme_menu_local_tasks in includes/menu.inc
Returns renderable local tasks.

Code

includes/menu.inc, line 1917

<?php
function menu_secondary_local_tasks() {
  $links = menu_local_tasks(1);
  // Do not display single tabs.
  return ($links['tabs']['count'] > 1 ? $links['tabs']['output'] : '');
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.