summaryrefslogtreecommitdiff
path: root/themes/example/example.theme
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-07-25 12:21:49 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2001-07-25 12:21:49 +0000
commit491550531fbe1885a12693cecdf02a9970c2672d (patch)
tree24d4f52624f5a33fcf7666a15fd7e0ffcc4ab772 /themes/example/example.theme
parentd016fb14f43976ba184d3e0597065b15f5eca1f0 (diff)
downloadbrdo-491550531fbe1885a12693cecdf02a9970c2672d.tar.gz
brdo-491550531fbe1885a12693cecdf02a9970c2672d.tar.bz2
common.inc
- format_username() now takes a second optional parameter which gives the real name of the user. Rest - updated the calls to format_username() where appropriate to show the name of the user instead of the account id. Clicking on a name will still give you the account info etc. If you find a place where the real name is not shown let me know.
Diffstat (limited to 'themes/example/example.theme')
-rw-r--r--themes/example/example.theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/example/example.theme b/themes/example/example.theme
index af4d900b4..0a34d71b9 100644
--- a/themes/example/example.theme
+++ b/themes/example/example.theme
@@ -63,7 +63,7 @@
<TD>
<?php
- echo strtr(t("by %a on %b"), array("%a" => format_username($node->userid), "%b" => format_date($node->timestamp, "small")));
+ echo strtr(t("by %a on %b"), array("%a" => format_username($node->userid, $node->name), "%b" => format_date($node->timestamp, "small")));
?>
</TD>
@@ -120,7 +120,7 @@
echo t("Author") .":";
echo " </TD>";
echo " <TD COLSPAN=\"2\">";
- echo format_username($comment->userid) ." on ". format_date($comment->timestamp);
+ echo format_username($comment->userid, $comment->name) ." on ". format_date($comment->timestamp);
echo " </TD>";
echo " </TR>";