You are here

function spam_error_page in Spam 6

Same name and namespace in other branches
  1. 5.3 spam.module \spam_error_page()
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.

File

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

Code

function spam_error_page() {
  $content = unserialize($_SESSION['spam_content']);
  $type = $_SESSION['spam_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('Send'),
  );
  return $form;
}