You are here

function user_page_title_pattern_alter in Page Title 7.2

Same name and namespace in other branches
  1. 8.2 modules/user.page_title.inc \user_page_title_pattern_alter()
  2. 6.2 modules/user.page_title.inc \user_page_title_pattern_alter()

Implements hook_page_title_pattern_alter().

File

modules/user.page_title.inc, line 25
User implementations of the page title hooks

Code

function user_page_title_pattern_alter(&$pattern, &$types) {
  if ($user = menu_get_object('user')) {
    $types['user'] = $user;
    $pattern = variable_get('page_title_user', '');
  }
}