Community Documentation

theme_menu_tree

5 menu.inc theme_menu_tree($pid = 1)
6 menu.inc theme_menu_tree($tree)
7 menu.inc theme_menu_tree($variables)
8 menu.inc theme_menu_tree($variables)

Generate the HTML for a menu tree.

Parameters

$pid: The parent id of the menu.

Related topics

File

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

Code

<?php
function theme_menu_tree($pid = 1) {
  if ($tree = menu_tree($pid)) {
    return "\n<ul class=\"menu\">\n" . $tree . "\n</ul>\n";
  }
}
?>
Login or register to post comments