Definition

theme_menu_item($mid, $children = '', $leaf = TRUE)
drupal/includes/menu.inc, line 592

Description

Generate the HTML output for a single menu item.

Parameters

$mid The menu id of the item.

$children A string containing any rendered child items of this menu.

$leaf A boolean indicating whether this menu item is a leaf.

Related topics

Namesort iconDescription
Menu systemDefine the navigation menus, and route page requests to code based on URLs.
Themeable functionsFunctions that display HTML, and which can be customized by themes.

Code

function theme_menu_item($mid, $children = '', $leaf = TRUE) {
  return '<li class="'. ($leaf ? 'leaf' : ($children ? 'expanded' : 'collapsed')) .'">'. menu_item_link($mid) . $children ."</li>\n";
}