menu_primary_local_tasks

Versions
4.6 – 7
menu_primary_local_tasks()

Returns the rendered local tasks at the top level.

Related topics

▾ 3 functions call menu_primary_local_tasks()

garland_menu_local_tasks in themes/garland/template.php
Returns the rendered local tasks. The default implementation renders them as tabs. Overridden to split the secondary tasks.
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 1908

<?php
function menu_primary_local_tasks() {
  $links = menu_local_tasks(0);
  // 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.