You are here

function menu_primary_local_tasks in Drupal 5

Same name and namespace in other branches
  1. 8 core/includes/menu.inc \menu_primary_local_tasks()
  2. 4 includes/menu.inc \menu_primary_local_tasks()
  3. 6 includes/menu.inc \menu_primary_local_tasks()
  4. 7 includes/menu.inc \menu_primary_local_tasks()

Returns the rendered HTML of the primary local tasks.

Related topics

2 calls to menu_primary_local_tasks()
phptemplate_menu_local_tasks in themes/garland/template.php
Returns the rendered local tasks. The default implementation renders them as tabs.
theme_menu_local_tasks in includes/menu.inc
Returns the rendered local tasks. The default implementation renders them as tabs.

File

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

Code

function menu_primary_local_tasks() {
  $local_tasks = menu_get_local_tasks();
  $pid = menu_get_active_nontask_item();
  $output = '';
  if (count($local_tasks[$pid]['children'])) {
    foreach ($local_tasks[$pid]['children'] as $mid) {
      $output .= theme('menu_local_task', $mid, menu_in_active_trail($mid), TRUE);
    }
  }
  return $output;
}