function blog_page_title_pattern_alter in Page Title 7.2
Same name and namespace in other branches
- 8.2 modules/blog.page_title.inc \blog_page_title_pattern_alter()
- 6.2 modules/blog.page_title.inc \blog_page_title_pattern_alter()
Implements hook_page_title_pattern_alter().
File
- modules/
blog.page_title.inc, line 27 - Blog implementations of the page title hooks
Code
function blog_page_title_pattern_alter(&$pattern, &$types) {
$menu_item = menu_get_item();
if (!strncmp($menu_item['path'], 'blog/%', 6) && ($user = menu_get_object('user_uid_optional'))) {
$types['user'] = $user;
$pattern = variable_get('page_title_blog', '');
}
}