menu_primary_local_tasks

  1. drupal
    1. 5
    2. 6
    3. 7
    4. 8
Versions
5 – 7 menu_primary_local_tasks()

Returns the rendered local tasks at the top level.

Related topics

▾ 2 functions call menu_primary_local_tasks()

menu_local_tabs in includes/menu.inc
Returns a renderable element for the primary and secondary tabs.
template_preprocess_overlay in modules/overlay/overlay.module
Preprocesses template variables for overlay.tpl.php

Code

includes/menu.inc, line 2195

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