You are here

function theme_menu_local_task in Drupal 5

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

Generate the HTML representing a given menu item ID as a tab.

Parameters

$mid: The menu ID to render.

$active: Whether this tab or a subtab is the active menu item.

$primary: Whether this tab is a primary tab or a subtab.

Related topics

2 theme calls to theme_menu_local_task()
menu_primary_local_tasks in includes/menu.inc
Returns the rendered HTML of the primary local tasks.
menu_secondary_local_tasks in includes/menu.inc
Returns the rendered HTML of the secondary local tasks.

File

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

Code

function theme_menu_local_task($mid, $active, $primary) {
  if ($active) {
    return '<li class="active">' . menu_item_link($mid) . "</li>\n";
  }
  else {
    return '<li>' . menu_item_link($mid) . "</li>\n";
  }
}