You are here

function crumbs_CrumbsMonoPlugin_home_title::findTitle in Crumbs, the Breadcrumbs suite 7.2

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

Find candidates for the parent path.

Parameters

string $path: The path that we want to find a parent for.

array $item: Item as returned from crumbs_get_router_item()

Return value

string Title candidate.

Overrides crumbs_MonoPlugin_FindTitleInterface::findTitle

File

plugins/crumbs.crumbs.inc, line 41

Class

crumbs_CrumbsMonoPlugin_home_title

Code

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