You are here

function crumbs_build_trail in Crumbs, the Breadcrumbs suite 6

Same name and namespace in other branches
  1. 6.2 crumbs.trail.inc \crumbs_build_trail()
1 call to crumbs_build_trail()
crumbs_get_trail in ./crumbs.module

File

./crumbs.module, line 76

Code

function crumbs_build_trail($path) {
  $finder = _crumbs_get_finder();
  $trail = $finder
    ->buildTrail($path);
  $trail_wrapped = array();
  foreach ($trail as $path => $extra) {
    $trail_wrapped[$path] = new crumbs_ItemWrapper_theme($extra);
  }
  return $trail_wrapped;
}