function theme_menu_tree

theme_menu_tree($variables)

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 1622
API for the Drupal menu system.

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!menu.inc/function/theme_menu_tree/7.x