function user_page_title

7.x user.module user_page_title($account)
6.x user.module user_page_title($account)

Menu item title callback - use the user name if it's not the current user.

1 string reference to 'user_page_title'
user_menu in drupal-6.x/modules/user/user.module
Implementation of hook_menu().

File

drupal-6.x/modules/user/user.module, line 1229
Enables the user registration and login system.

Code

function user_page_title($account) {
  if ($account->uid == $GLOBALS['user']->uid) {
    return t('My account');
  }
  return $account->name;
}