function crumbs_ParentFinder::getParentPath in Crumbs, the Breadcrumbs suite 6.2
Same name and namespace in other branches
- 7.2 lib/ParentFinder.php \crumbs_ParentFinder::getParentPath()
- 7 lib/ParentFinder.php \crumbs_ParentFinder::getParentPath()
File
- ./
crumbs.trail.inc, line 140
Class
- crumbs_ParentFinder
- Can find a parent path for a given path. Contains a cache.
Code
function getParentPath($path, &$item) {
if (!isset($this->_parents[$path])) {
$parent_path = $this
->_findParentPath($path, $item);
$this->_parents[$path] = drupal_get_normal_path($parent_path);
}
return $this->_parents[$path];
}