user_page_title

Versions
6 – 7
user_page_title($account)

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

Code

modules/user/user.module, line 1197

<?php
function user_page_title($account) {
  if ($account->uid == $GLOBALS['user']->uid) {
    return t('My account');
  }
  return $account->name;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.