Definition

theme_menu_tree($pid = 1)
drupal/includes/menu.inc, line 555

Description

Generate the HTML for a menu tree.

Parameters

$pid The parent id of the menu.

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_tree($pid = 1) {
  if ($tree = menu_tree($pid)) {
    return "\n<ul>\n". $tree ."\n</ul>\n";
  }
}