diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-12-14 13:51:57 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-12-14 13:51:57 +0000 |
commit | 527a054952f48b350641b82f4bd6d37390b54d0a (patch) | |
tree | 0e4ca56524bba92ce492257ecfaa712d443234ae /modules/contact | |
parent | 516d24d1cd880c9ee6ccab195fd50d90c6f74e13 (diff) | |
download | brdo-527a054952f48b350641b82f4bd6d37390b54d0a.tar.gz brdo-527a054952f48b350641b82f4bd6d37390b54d0a.tar.bz2 |
- Patch #644648 by sun: cleaned up, documented, and corrected some ['#token'] code.
Diffstat (limited to 'modules/contact')
-rw-r--r-- | modules/contact/contact.pages.inc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/contact/contact.pages.inc b/modules/contact/contact.pages.inc index fcf3d6e2e..3dd4c3e47 100644 --- a/modules/contact/contact.pages.inc +++ b/modules/contact/contact.pages.inc @@ -61,7 +61,6 @@ function contact_site_form($form, &$form_state) { $form['#attributes']['class'][] = 'user-info-from-cookie'; } - $form['#token'] = $user->uid ? $user->name . $user->mail : ''; $form['name'] = array( '#type' => 'textfield', '#title' => t('Your name'), @@ -171,7 +170,7 @@ function contact_site_form_submit($form, &$form_state) { * @see contact_personal_form_validate() * @see contact_personal_form_submit() */ -function contact_personal_form($form, &$form_state, stdClass $recipient) { +function contact_personal_form($form, &$form_state, $recipient) { global $user; // Check if flood control has been activated for sending e-mails. @@ -190,7 +189,6 @@ function contact_personal_form($form, &$form_state, stdClass $recipient) { $form['#attributes']['class'][] = 'user-info-from-cookie'; } - $form['#token'] = $user->uid ? $user->name . $user->mail : ''; $form['recipient'] = array( '#type' => 'value', '#value' => $recipient, |