You are here

function blog_page_title_pattern_alter in Page Title 6.2

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

Implementation of hook_page_title_pattern_alter().

File

modules/blog.page_title.inc, line 28
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', '');
  }
}