Skip navigation
Help

menu_primary_local_tasks

6 menu.inc menu_primary_local_tasks()
7 menu.inc menu_primary_local_tasks()

Returns the rendered local tasks at the top level.

Related topics

2 calls to menu_primary_local_tasks()

File

drupal/includes/menu.inc, line 2141
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'] : '');
}