diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-10-18 17:57:05 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-10-18 17:57:05 +0000 |
commit | 04db6f2c41d3a52bd9944a65e20e088f1741983b (patch) | |
tree | 906ec4472f15b2e8c19cfed4aac1bd16775a5c85 | |
parent | d7705ea68366da63286df16dd2d10f6198cd0831 (diff) | |
download | brdo-04db6f2c41d3a52bd9944a65e20e088f1741983b.tar.gz brdo-04db6f2c41d3a52bd9944a65e20e088f1741983b.tar.bz2 |
- Patch #88945 by webernet: to field in personal contact form always blank.
-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'), |