You are here

function xssprotection_settings_form in XSS Protection 7

Implements hook_form().

1 string reference to 'xssprotection_settings_form'
xssprotection_menu in ./xssprotection.module
Implements hook_menu().

File

./xssprotection.admin.inc, line 11
Module for managing XSS vulnerability.

Code

function xssprotection_settings_form($form, &$form_state) {
  $form['xssprotection_enabled'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable the XSS protection'),
    '#default_value' => variable_get('xssprotection_enabled', 0),
  );
  $form['xssprotection_text_enabled'] = array(
    '#type' => 'checkbox',
    '#title' => t('Enable text to be displayed after deflecting an attack.'),
    '#default_value' => variable_get('xssprotection_text_enabled', 0),
  );
  $form['xssprotection_text'] = array(
    '#title' => t('Message'),
    '#type' => 'textarea',
    '#description' => t('Text to display to user'),
    '#default_value' => variable_get('xssprotection_text', 'Requested page could not be found.'),
  );
  return system_settings_form($form);
}