You are here

class _path_CrumbsPlugin in Crumbs, the Breadcrumbs suite 6

Same name and namespace in other branches
  1. 6.2 plugins/crumbs.path.inc \_path_CrumbsPlugin

Implementation of class hook class_CrumbsParentFinder on the behalf of path module.

Hierarchy

Expanded class hierarchy of _path_CrumbsPlugin

File

plugins/crumbs.path.inc, line 13

View source
class _path_CrumbsPlugin {
  function define($h) {
    $h
      ->setTitle(t('existing alias for the given path'));
  }
  function findParent($path) {
    $alias = drupal_get_path_alias($path);
    $fragments = explode('/', $alias);
    if (count($fragments) > 1) {
      array_pop($fragments);
      return implode('/', $fragments);
    }
  }

}

Members