You are here

function theme_webmaster_menu_tree in Webmaster menu 7

Render a menu tree.

Parameters

array $variables: An associative array containing:

  • tree: An array of menu items. Each menu item is suitable for being rendered by theme_webmaster_menu_subtree
2 theme calls to theme_webmaster_menu_tree()
theme_webmaster_menu_item in ./webmaster_menu.module
Render a menu item, including its children.
theme_webmaster_menu_toolbar in ./webmaster_menu.module
Render the toolbar.

File

./webmaster_menu.module, line 220
Display a dropdown menu at the top of the window.

Code

function theme_webmaster_menu_tree($variables) {
  $menu_items = $variables['tree'];
  $html = '<ul class="menu">';
  foreach ($menu_items as $menu_item) {
    $html .= theme('webmaster_menu_item', array(
      'menu_item' => $menu_item,
    ));
  }
  $html .= '</ul>';
  return $html;
}