You are here

function spam_error_page in Spam 5.3

Same name and namespace in other branches
  1. 6 spam.module \spam_error_page()

Require user reporting non-spam to submit feedback.

1 string reference to 'spam_error_page'
spam_denied_in_error_page in ./spam.module
Allow the user to report when their content was inapropriately marked as spam. This for is a likely candidate for a captcha.

File

./spam.module, line 1589

Code

function spam_error_page() {
  $content = unserialize($_SESSION['content']);
  $type = $_SESSION['type'];
  $form = $_SESSION['spam_form'];
  $form = spam_invoke_module($type, 'error_form', $content);
  if (!is_array($form)) {
    $form = array();
  }
  $form['feedback'] = array(
    '#type' => 'textarea',
    '#title' => t('Feedback'),
    '#required' => TRUE,
    '#description' => t('Please offer some feedback to the site administrator, explaining how your content is relevant to this website.'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
  );
  return $form;
}