From 7625a4e91ab81b52f5cd74cabe5b0e0324ef8bb4 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Mon, 1 Aug 2005 05:14:05 +0000 Subject: - 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. --- modules/user/user.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/user/user.module') 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'), -- cgit v1.2.3