You are here

function spam_error_page_submit in Spam 6

Same name and namespace in other branches
  1. 5.3 spam.module \spam_error_page_submit()

Form submit callback for feedback form.

File

./spam.module, line 1690
Spam module, v3 Copyright(c) 2006-2008 Jeremy Andrews <jeremy@tag1consulting.com>. All rights reserved.

Code

function spam_error_page_submit($form, &$form_state) {
  spam_feedback_insert($form_state['values']['feedback']);
  drupal_set_message(t('Your feedback will be reviewed by a site administrator.'));
  $form_state['redirect'] = '';
}