You are here

function menutree_display_all in MenuTree 5

Same name and namespace in other branches
  1. 6 menutree.pages.inc \menutree_display_all()

Menu callback; Display a fully-expanded version of all flagged menus.

1 string reference to 'menutree_display_all'
menutree_menu in ./menutree.module
Implementation of hook_menu().

File

./menutree.module, line 129
This module provides a simple "site map" tree based on the menu system rather than on taxonomies.

Code

function menutree_display_all() {
  $trees = array();
  $roots = menu_get_root_menus();
  foreach (array_keys($roots) as $pid) {
    if (($weight = variable_get('menutree_all_weight_' . $pid, '<none>')) !== '<none>') {
      $trees[$weight] = menutree_display($pid, MENUTREE_TITLE_BODY);
    }
  }
  ksort($trees);
  return implode($trees);
}