You are here

function page_title_page_title_alter in Page Title 8.2

Same name and namespace in other branches
  1. 6.2 modules/page_title.page_title.inc \page_title_page_title_alter()
  2. 7.2 modules/page_title.page_title.inc \page_title_page_title_alter()

Implements hook_page_title_alter().

File

modules/page_title.page_title.inc, line 12
Page Title implementations of the page title hooks

Code

function page_title_page_title_alter(&$title) {

  // If nothing above set a title, give the legacy function a chance to act
  if (empty($title)) {
    $title = page_title_set_title();
  }

  // If we still have no title, fall back to the title provided by Drupal Core
  if (empty($title)) {
    $title = strip_tags(drupal_get_title());
  }
}