summaryrefslogtreecommitdiff
path: root/modules/forum
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-08-01 05:14:05 +0000
committerDries Buytaert <dries@buytaert.net>2005-08-01 05:14:05 +0000
commit7625a4e91ab81b52f5cd74cabe5b0e0324ef8bb4 (patch)
tree255aa1aab3de018eeb60d5756522e7726c7dbe10 /modules/forum
parent22479d876173f5e1704cbafabba667450ecf2512 (diff)
downloadbrdo-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/forum')
-rw-r--r--modules/forum/forum.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/forum/forum.module b/modules/forum/forum.module
index 223d6f387..301a3f296 100644
--- a/modules/forum/forum.module
+++ b/modules/forum/forum.module
@@ -581,7 +581,7 @@ function forum_delete(&$node) {
*/
function _forum_format($topic) {
if ($topic && $topic->timestamp) {
- return t('%time ago<br />by %author', array('%time' => format_interval(time() - $topic->timestamp), '%author' => format_name($topic)));
+ return t('%time ago<br />by %author', array('%time' => format_interval(time() - $topic->timestamp), '%author' => theme('username', $topic)));
}
else {
return message_na();