theme_menu_local_task($mid, $active, $primary)
drupal/includes/menu.inc, line 696
Generate the HTML representing a given menu item ID as a tab.
$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.
| Name | Description |
|---|---|
| Menu system | Define the navigation menus, and route page requests to code based on URLs. |
| Themeable functions | Functions that display HTML, and which can be customized by themes. |
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";
}
}