You are here

function _menu_select_debug_tree in Menu Select 7

Debug function for testing the menu tree.

File

./menu_select.module, line 300
Expands the node menu select field functionality by adding filters and an expandable hierarchy.

Code

function _menu_select_debug_tree($level, &$map, $depth = 0) {
  foreach ($level as $key => $children) {
    if (!empty($children)) {
      _menu_select_debug_tree($children, $map, $depth + 1);
    }
  }
}