diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-08-01 05:14:05 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-08-01 05:14:05 +0000 |
commit | 7625a4e91ab81b52f5cd74cabe5b0e0324ef8bb4 (patch) | |
tree | 255aa1aab3de018eeb60d5756522e7726c7dbe10 /modules/user/user.module | |
parent | 22479d876173f5e1704cbafabba667450ecf2512 (diff) | |
download | brdo-7625a4e91ab81b52f5cd74cabe5b0e0324ef8bb4.tar.gz brdo-7625a4e91ab81b52f5cd74cabe5b0e0324ef8bb4.tar.bz2 |
- Patch #27737 by Gerhard: format_name($object) -> theme('username', $object).
Usernames can now be themed; eg. an icon/avatar could be added.
TODO: update contributed modules + update the migration docs.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r-- | modules/user/user.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/user/user.module b/modules/user/user.module index 242dcb4b4..6fba6771d 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -639,7 +639,7 @@ function theme_user_profile($account, $fields) { */ function theme_user_list($users, $title = NULL) { foreach ($users as $user) { - $items[] = format_name($user); + $items[] = theme('username', $user); } return theme('item_list', $items, $title); } @@ -1722,7 +1722,7 @@ function user_admin_account() { $status = array(t('blocked'), t('active')); $destination = drupal_get_destination(); while ($account = db_fetch_object($result)) { - $rows[] = array(format_name($account), + $rows[] = array(theme('username', $account), $status[$account->status], format_interval(time() - $account->created), $account->access ? t('%time ago', array('%time' => format_interval(time() - $account->access))) : t('never'), |