You are here

class crumbs_CrumbsMonoPlugin_home_title in Crumbs, the Breadcrumbs suite 7

Same name and namespace in other branches
  1. 7.2 plugins/crumbs.crumbs.inc \crumbs_CrumbsMonoPlugin_home_title

Hierarchy

Expanded class hierarchy of crumbs_CrumbsMonoPlugin_home_title

File

plugins/crumbs.crumbs.inc, line 13

View source
class crumbs_CrumbsMonoPlugin_home_title implements crumbs_MonoPlugin {
  protected $frontNormalPath;
  function __construct() {
    $this->frontNormalPath = drupal_get_normal_path(variable_get('site_frontpage', 'node'));
  }
  function describe($api) {
    return t('Set "Home" as the title for the root item.');
  }
  function findTitle($path, array $item) {
    if ($path === $this->frontNormalPath) {
      return t('Home');
    }
  }

}

Members