custom/menu_helper/menu_helper_submenu/menu_helper_submenu.module, line 614
_menu_helper_submenu_dropdown_form_options_recurse(&$options, $tree, $indent='')Loops and recurses a menu tree to build a dropdown select options.
<?php
function _menu_helper_submenu_dropdown_form_options_recurse(&$options, $tree, $indent='') {
foreach ($tree as $item) {
$options[$item['link']['href']] = $indent . $item['link']['title'];
if ( $item['below'] ) {
_menu_helper_submenu_dropdown_form_options_recurse($options, $item['below'], $indent .'--');
}
}
}
?>