Same name and namespace in other branches
  1. 4.6.x includes/menu.inc \theme_menu_tree()
  2. 4.7.x includes/menu.inc \theme_menu_tree()
  3. 5.x includes/menu.inc \theme_menu_tree()
  4. 6.x includes/menu.inc \theme_menu_tree()

Returns HTML for a wrapper for a menu sub-tree.

Parameters

$variables: An associative array containing:

  • tree: An HTML string containing the tree's items.

See also

template_preprocess_menu_tree()

Related topics

File

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

Code

function theme_menu_tree($variables) {
  return '<ul class="menu">' . $variables['tree'] . '</ul>';
}