theme_menu_tree

  1. drupal
    1. 4.7
    2. 5
    3. 6 menu.inc
    4. 7 menu.inc
Versions
4.7 – 5 theme_menu_tree($pid = 1)
6 theme_menu_tree($tree)
7 theme_menu_tree($variables)

Generate the HTML for a menu tree.

Parameters

$pid The parent id of the menu.

Related topics

Code

includes/menu.inc, line 647

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