You are here

class crumbs_CrumbsMonoPlugin_home_title in Crumbs, the Breadcrumbs suite 7.2

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

Hierarchy

Expanded class hierarchy of crumbs_CrumbsMonoPlugin_home_title

File

plugins/crumbs.crumbs.inc, line 26

View source
class crumbs_CrumbsMonoPlugin_home_title implements crumbs_MonoPlugin_FindTitleInterface {

  /**
   * {@inheritdoc}
   */
  function describe($api) {
    $home_title = variable_get('crumbs_home_link_title', 'Home');
    return t('Set t("@title") as the title for the root item.', array(
      '@title' => $home_title,
    ));
  }

  /**
   * {@inheritdoc}
   */
  function findTitle($path, $item) {
    if ('<front>' === $item['href']) {
      $home_title = variable_get('crumbs_home_link_title', 'Home');
      return t($home_title);
    }
    return NULL;
  }

}

Members