You are here

function _site_map_menus in Site map 5

Same name and namespace in other branches
  1. 8 site_map.module \_site_map_menus()
  2. 6.2 site_map.module \_site_map_menus()
  3. 6 site_map.module \_site_map_menus()
  4. 7 site_map.module \_site_map_menus()

Render menus

1 call to _site_map_menus()
theme_site_map_display in ./site_map.module

File

./site_map.module, line 387
Original author: Nic Ivy Now maintained by by Fredrik Jonsson fredrik at combonet dot se

Code

function _site_map_menus() {
  $output = '';
  if ($mids = variable_get('site_map_show_menus', array())) {
    $menu = menu_get_menu();
    foreach ($mids as $mid) {
      $menu_display = _site_map_menu_tree($mid, $menu);
      if (!empty($menu_display)) {
        $title = $menu['visible'][$mid]['title'];
        $output .= theme('box', $title, $menu_display);
      }
    }
  }
  return $output;
}