You are here

function page_title_page_title_pattern_alter in Page Title 6.2

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

Implementation of hook_page_title_pattern_alter().

File

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

Code

function page_title_page_title_pattern_alter(&$pattern, &$data = array()) {

  // If frontpage, then use the frontpage pattern and set the title.
  if (drupal_is_front_page()) {

    // Get the frontpage pattern
    $settings = page_title_get_settings();
    $pattern = variable_get('page_title_front', $settings['page_title_front']['default']);
  }
}