function jquerymenu_trail_creator in JQuery menu 7.4
Same name and namespace in other branches
- 7.3 jquerymenu.module \jquerymenu_trail_creator()
1 call to jquerymenu_trail_creator()
- jquerymenu_block_view in ./
jquerymenu.module - Implements hook_block_view().
File
- ./
jquerymenu.module, line 163 - The jQuerymenu module parses hierarchical link arrays and renders them as click and expand menu blocks.
Code
function jquerymenu_trail_creator() {
$activetrail = menu_get_active_trail();
$url_array = array();
foreach ($activetrail as $trail) {
// Create an array of only the paths for easy evaluation.
if (isset($trail['href'])) {
$url_array[] = $trail['href'];
}
}
return $url_array;
}