diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-04-24 11:43:08 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-04-24 11:43:08 +0000 |
commit | e2b256dcf63e01de58a47f7b8358ac918eaf3b91 (patch) | |
tree | 47a95f58a9a1de49c94fc9bf9589452861048cfb /modules/contact | |
parent | 45c5344f15ad1dd812eaa0fda677a72ab077d755 (diff) | |
download | brdo-e2b256dcf63e01de58a47f7b8358ac918eaf3b91.tar.gz brdo-e2b256dcf63e01de58a47f7b8358ac918eaf3b91.tar.bz2 |
- Patch #18719 by Jose: reworked the 'request new password' functionality.
Diffstat (limited to 'modules/contact')
-rw-r--r-- | modules/contact/contact.module | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/contact/contact.module b/modules/contact/contact.module index 71d88cdb8..7f9646bb4 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -224,7 +224,7 @@ function contact_mail_page() { if (isset($_POST['edit'])) { $edit = $_POST['edit']; } - + if ($edit) { // Validate the fields: if (!$edit['name']) { @@ -236,11 +236,11 @@ function contact_mail_page() { if (!$edit['message']) { form_set_error('message', t('You must enter a message.')); } - + if (!form_get_errors()) { // Prepare the sender: $from = $edit['mail']; - + // Compose the body: $message[] = t("%name sent a message using the contact form at %form:", array('%name' => $edit['name'], '%form' => url($_GET['q'], NULL, NULL, TRUE))); $message[] = $edit['message']; @@ -282,7 +282,7 @@ function contact_mail_page() { $edit['name'] = $user->name; $edit['mail'] = $user->mail; } - + $result = db_query('SELECT subject FROM contact ORDER BY subject'); while ($subject = db_fetch_object($result)) { $subjects[$subject->subject] = $subject->subject; |