Contributions API

theme_menu_local_task

Definition

theme_menu_local_task($link, $active = FALSE)
6/includes/menu.inc, line 1138

Description

Generate the HTML output for a single local task link.

Related topics

Namesort iconDescription
Default theme implementationsFunctions and templates that present output to the user, and can be implemented by themes.
Menu systemDefine the navigation menus, and route page requests to code based on URLs.

Code

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