diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/contact/contact.module | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/contact/contact.module b/modules/contact/contact.module index f0a7b60cb..f1a166d4c 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -316,7 +316,7 @@ function contact_user_page() { } else { drupal_set_title($account->name); - $output = drupal_get_form('contact_mail_user'); + $output = drupal_get_form('contact_mail_user', $account); } return $output; @@ -326,7 +326,7 @@ function contact_user_page() { } } -function contact_mail_user() { +function contact_mail_user($recipient) { global $user; $form['#token'] = $user->name . $user->mail; $form['from'] = array('#type' => 'item', @@ -335,7 +335,7 @@ function contact_mail_user() { ); $form['to'] = array('#type' => 'item', '#title' => t('To'), - '#value' => $account->name, + '#value' => $recipient->name, ); $form['subject'] = array('#type' => 'textfield', '#title' => t('Subject'), |