summaryrefslogtreecommitdiff
path: root/modules/contact
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-26 20:09:12 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-04-26 20:09:12 +0000
commit93688e77b1939c62d15a732be97b76dedc83ffa8 (patch)
treee3db49bc2d6f3c6385e2dbe38f16a0baf7ed65b4 /modules/contact
parentdac6a2be3df7c4cd43cf454fb708a80c83c85993 (diff)
downloadbrdo-93688e77b1939c62d15a732be97b76dedc83ffa8.tar.gz
brdo-93688e77b1939c62d15a732be97b76dedc83ffa8.tar.bz2
#229660 by Dave Reid: Use theme_username() in personal contact form.
Diffstat (limited to 'modules/contact')
-rw-r--r--modules/contact/contact.pages.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc
index c1fe3acca..2984b0d53 100644
--- a/modules/contact/contact.pages.inc
+++ b/modules/contact/contact.pages.inc
@@ -174,11 +174,11 @@ function contact_mail_user(&$form_state, $recipient) {
$form['recipient'] = array('#type' => 'value', '#value' => $recipient);
$form['from'] = array('#type' => 'item',
'#title' => t('From'),
- '#markup' => check_plain($user->name) . ' &lt;' . check_plain($user->mail) . '&gt;',
+ '#markup' => theme('username', $user) . ' &lt;' . check_plain($user->mail) . '&gt;',
);
$form['to'] = array('#type' => 'item',
'#title' => t('To'),
- '#markup' => check_plain($recipient->name),
+ '#markup' => theme('username', $recipient),
);
$form['subject'] = array('#type' => 'textfield',
'#title' => t('Subject'),