You are here

function realname_blog_page in Real Name 6

Intercept the user blog page.

1 string reference to 'realname_blog_page'
realname_menu_alter in ./realname.module
Implements hook_menu_alter().

File

./realname.module, line 256

Code

function realname_blog_page($account) {
  if (module_exists('blogtitle')) {
    $output = blogtitle_blog_page_user($account);
  }
  else {
    $output = blog_page_user($account);
    drupal_set_title(t("@name's blog", array(
      '@name' => $account->realname,
    )));
  }
  return $output;
}