From 04db6f2c41d3a52bd9944a65e20e088f1741983b Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 18 Oct 2006 17:57:05 +0000 Subject: - Patch #88945 by webernet: to field in personal contact form always blank. --- modules/contact/contact.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules') 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'), -- cgit v1.2.3