diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-02-20 10:58:22 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-02-20 10:58:22 +0000 |
commit | 9ed1a74c5d0742bc908632ae6d44edb6b1e035fa (patch) | |
tree | 63c5b7815ef34a48fd6d90f6488130218f0f638a /modules/contact.module | |
parent | bb08146c67386699cb78c50bcb7e962df776eb81 (diff) | |
download | brdo-9ed1a74c5d0742bc908632ae6d44edb6b1e035fa.tar.gz brdo-9ed1a74c5d0742bc908632ae6d44edb6b1e035fa.tar.bz2 |
- Patch by Goba: fixed whitespaces.
Diffstat (limited to 'modules/contact.module')
-rw-r--r-- | modules/contact.module | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/modules/contact.module b/modules/contact.module index 189676a86..1851b9662 100644 --- a/modules/contact.module +++ b/modules/contact.module @@ -74,9 +74,9 @@ function contact_mail_user() { if (!$edit['message']) { form_set_error('message', t('You must enter a message.')); } - if (!$edit['subject']) { - form_set_error('subject', t('You must enter a subject.')); - } + if (!$edit['subject']) { + form_set_error('subject', t('You must enter a subject.')); + } if (!form_get_errors()) { // Compose the body: @@ -89,18 +89,17 @@ function contact_mail_user() { // Tidy up the body: foreach ($message as $key => $value) { $message[$key] = wordwrap(strip_tags($value)); - } // Prepare all fields: $to = $account->mail; $from = $user->mail; - // Format the subject: + // Format the subject: $subject = '['. variable_get('site_name', 'drupal') .'] '. $edit['subject']; // Prepare the body: - $body = implode("\n\n", $message); + $body = implode("\n\n", $message); // Send the e-mail: user_mail($to, $subject, $body, "From: $from\nReply-to: $from\nX-Mailer: Drupal\nReturn-path: $from\nErrors-to: $from"); |