function _better_jump_menu_convert_to_options_array in Better Jump Menu 7
Convert the result of menu_tree_output to an option array.
Parameters
$build:
$options:
$configuration:
Return value
mixed
2 calls to _better_jump_menu_convert_to_options_array()
File
- ./
better_jump_menu.helpers.inc, line 17 - Helpers functions.
Code
function _better_jump_menu_convert_to_options_array(&$build, &$options, $configuration) {
foreach (element_children($build) as $key) {
$value = uniqid() . '::' . url($build[$key]['#href'], array(
'absolute' => TRUE,
));
$indent = str_repeat($configuration['indent'], $build[$key]['#original_link']['depth'] - 1);
$options[$value] = trim(sprintf('%s %s', $indent, trim($build[$key]['#title'])));
_better_jump_menu_convert_to_options_array($build[$key]['#below'], $options, $configuration);
}
}