function user_page_title_pattern_alter in Page Title 6.2
Same name and namespace in other branches
- 8.2 modules/user.page_title.inc \user_page_title_pattern_alter()
- 7.2 modules/user.page_title.inc \user_page_title_pattern_alter()
Implementation of 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) {
// User Page Pattern
if (($user = menu_get_object('user')) || ($user = menu_get_object('user_uid_optional'))) {
$types['user'] = $user;
$pattern = variable_get('page_title_user', '');
}
}