function menu_primary_local_tasks

menu_primary_local_tasks()

Returns the rendered local tasks at the top level.

Related topics

File

includes/menu.inc, line 2237
API for the Drupal menu system.

Code

function menu_primary_local_tasks() {
  $links = menu_local_tasks(0);
  // Do not display single tabs.
  return ($links['tabs']['count'] > 1 ? $links['tabs']['output'] : '');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!menu.inc/function/menu_primary_local_tasks/7.x