You are here

function httpbl_request_whitelist in http:BL 6

Same name and namespace in other branches
  1. 5 httpbl.module \httpbl_request_whitelist()
  2. 6.2 httpbl.module \httpbl_request_whitelist()
  3. 7 httpbl.module \httpbl_request_whitelist()

Form to request a session whitelist.

1 string reference to 'httpbl_request_whitelist'
httpbl_menu in ./httpbl.module
Implementation of hook_menu().

File

./httpbl.module, line 510
Implementation of http:BL for Drupal. It provides IP-based blacklisting through http:BL and allows linking to a honeypot.

Code

function httpbl_request_whitelist() {
  $form['#redirect'] = 'node';
  $form['reason'] = array(
    '#type' => 'textarea',
    '#title' => t('Reason you were blocked'),
    '#size' => 60,
    '#required' => TRUE,
  );
  $form['block'] = array(
    '#type' => 'textfield',
    '#title' => t('Leave this blank'),
    '#size' => 15,
  );
  $form['leave'] = array(
    '#type' => 'textfield',
    '#size' => 30,
    '#attributes' => array(
      'style' => 'display: none',
    ),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Whitelist request'),
  );
  return $form;
}