function user_page_title in Drupal 6
Same name and namespace in other branches
- 7 modules/user/user.module \user_page_title()
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 modules/
user/ user.module - Implementation of hook_menu().
File
- modules/
user/ user.module, line 1236 - 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;
}