#229660 by Dave Reid: Use theme_username() in personal contact form.

merge-requests/26/head
Angie Byron 2009-04-26 20:09:12 +00:00
parent dac6a2be3d
commit 93688e77b1
1 changed files with 2 additions and 2 deletions

View File

@ -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) . ' <' . check_plain($user->mail) . '>',
'#markup' => theme('username', $user) . ' <' . check_plain($user->mail) . '>',
);
$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'),