user_page_title

6 user.module user_page_title($account)
7 user.module user_page_title($account)
8 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'

File

modules/user/user.module, line 1218
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;
}
Login or register to post comments