user_page_title

Definition

user_page_title($account)
modules/user/user.module, line 1179

Description

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

Code

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

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.