You are here

function crumbs_get_trail in Crumbs, the Breadcrumbs suite 6.2

Same name and namespace in other branches
  1. 6 crumbs.module \crumbs_get_trail()
  2. 7.2 crumbs.module \crumbs_get_trail()
  3. 7 crumbs.module \crumbs_get_trail()
2 calls to crumbs_get_trail()
crumbs_get_breadcrumb_data in ./crumbs.module
crumbs_match_pattern in ./crumbs.module

File

./crumbs.module, line 66

Code

function crumbs_get_trail($path = NULL) {
  static $_trails = array();
  if (!isset($path)) {
    $path = $_GET['q'];
  }
  $path = drupal_get_normal_path($path);
  if (!isset($_trails[$path])) {
    module_load_include('inc', 'crumbs', 'crumbs.plugin_engine');
    module_load_include('inc', 'crumbs', 'crumbs.trail');
    $_trails[$path] = crumbs_build_trail($path);
  }
  return $_trails[$path];
}