function _path_CrumbsPlugin::findParent in Crumbs, the Breadcrumbs suite 6
Same name and namespace in other branches
- 6.2 plugins/crumbs.path.inc \_path_CrumbsPlugin::findParent()
File
- plugins/
crumbs.path.inc, line 19
Class
- _path_CrumbsPlugin
- Implementation of class hook class_CrumbsParentFinder on the behalf of path module.
Code
function findParent($path) {
$alias = drupal_get_path_alias($path);
$fragments = explode('/', $alias);
if (count($fragments) > 1) {
array_pop($fragments);
return implode('/', $fragments);
}
}