You are here

function jquerymenu_trail_creator in JQuery menu 7.3

Same name and namespace in other branches
  1. 7.4 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 159
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;
}