menu_local_tabs

menu_local_tabs()

Returns a renderable element for the primary and secondary tabs.

Related topics

Menu system
Define the navigation menus, local actions and tasks, and contextual links.

File

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

Code

function menu_local_tabs() {
  $build = array(
    '#theme' => 'menu_local_tasks',
    '#primary' => menu_primary_local_tasks(),
    '#secondary' => menu_secondary_local_tasks(),
  );
  return !empty($build['#primary']) || !empty($build['#secondary']) ? $build : array();
}
doc_Drupal
2016-10-29 09:27:48
Comments
Leave a Comment

Please login to continue.