function _crumbs_BreadcrumbBuilder::buildBreadcrumb in Crumbs, the Breadcrumbs suite 6.2
File
- ./
crumbs.breadcrumb.inc, line 53
Class
Code
function buildBreadcrumb($trail) {
$breadcrumb = array();
foreach ($trail as $path => $item) {
if ($item) {
$title = $this
->_findTitle($path, $item, $breadcrumb);
if (!isset($title)) {
$title = $item['title'];
}
// The item will be skipped, if $title === FALSE.
if (isset($title) && $title !== FALSE) {
$item['link_title'] = $title;
$item['link_options'] = array();
$breadcrumb[] = $item;
}
}
}
$this
->_decorateBreadcrumb($breadcrumb);
return $breadcrumb;
}