You are here

function user_page_title_alter in Page Title 6.2

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

Implementation of hook_page_title_alter().

File

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

Code

function user_page_title_alter(&$title) {

  // If we're looking at either a user profile page, get the user title
  if (($user = menu_get_object('user')) || ($user = menu_get_object('user_uid_optional')) && variable_get('page_title_user_showfield', 0) && ($user_title = page_title_load_title($user->uid, 'user'))) {
    $title = $user_title;
  }
}