You are here

class _crumbs_CrumbsPlugin__home_title in Crumbs, the Breadcrumbs suite 6.2

Same name and namespace in other branches
  1. 6 plugins/crumbs.crumbs.inc \_crumbs_CrumbsPlugin__home_title

Hierarchy

Expanded class hierarchy of _crumbs_CrumbsPlugin__home_title

File

plugins/crumbs.crumbs.inc, line 16

View source
class _crumbs_CrumbsPlugin__home_title {
  protected $_front_normal_path;
  function __construct() {
    $this->_front_normal_path = drupal_get_normal_path(variable_get('site_frontpage', 'node'));
  }
  function define($h) {
    return $h
      ->setTitle(t('Set "Home" as the title for the root item.'));
  }
  function findTitle($path, array $item) {
    if ($path === $this->_front_normal_path) {
      return t('Home');
    }
  }

}

Members