Community Documentation

theme_menu_local_task

5 menu.inc theme_menu_local_task($mid, $active, $primary)
6 menu.inc theme_menu_local_task($link, $active = FALSE)
7 menu.inc theme_menu_local_task($variables)
8 menu.inc theme_menu_local_task($variables)

Generate the HTML output for a single local task link.

Related topics

File

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

Code

<?php
function theme_menu_local_task($link, $active = FALSE) {
  return '<li ' . ($active ? 'class="active" ' : '') . '>' . $link . "</li>\n";
}
?>

Comments

Wrapper

Also See:

http://api.drupal.org/api/function/theme_menu_local_tasks
Returns the rendered local tasks. The default implementation renders them as tabs.

Login or register to post comments