You are here

function realname_user_page_title in Real Name 6

Intercept the user page title to use the user's name.

3 calls to realname_user_page_title()
realname_content_profile_page_edit in ./realname.module
Intercept the content profile edit page.
realname_user_edit in ./realname.module
Intercept the user edit page. Modified from user.module. Fix some core bugs.
realname_user_view in ./realname.module
Intercept the user page view. Modified from user.module. Fix some core bugs.
1 string reference to 'realname_user_page_title'
realname_menu_alter in ./realname.module
Implements hook_menu_alter().

File

./realname.module, line 332

Code

function realname_user_page_title($account) {
  global $user;
  $myacct = variable_get('realname_myacct', t('My account'));
  if ($user->uid == $account->uid && $myacct) {
    return $myacct;
  }
  $name = isset($account->realname) ? $account->realname : realname_make_name($account);
  return $name;
}