theme_menu_local_task

Versions
4.6 – 5
theme_menu_local_task($mid, $active, $primary)
6
theme_menu_local_task($link, $active = FALSE)
7
theme_menu_local_task($variables)

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

Code

includes/menu.inc, line 789

<?php
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";
  }
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.