You are here

function css_captcha_settings_form in CAPTCHA Pack 5

Same name and namespace in other branches
  1. 6 css_captcha/css_captcha.admin.inc \css_captcha_settings_form()
  2. 7 css_captcha/css_captcha.admin.inc \css_captcha_settings_form()

Function for the settings form

2 string references to 'css_captcha_settings_form'
css_captcha_menu in css_captcha/css_captcha.module
Implementation of hook_menu().
css_captcha_settings_form_validate in css_captcha/css_captcha.module
Validation function

File

css_captcha/css_captcha.module, line 37

Code

function css_captcha_settings_form() {
  $form = array();
  $form['css_captcha_allowed_characters'] = array(
    '#type' => 'textfield',
    '#title' => t('Characters to use in the code'),
    '#default_value' => variable_get('css_captcha_allowed_characters', CSS_CAPTCHA_DEFAULT_ALLOWED_CHARACTERS),
  );
  $form['css_captcha_code_length'] = array(
    '#type' => 'select',
    '#title' => t('Code length'),
    '#options' => array(
      4 => 4,
      5 => 5,
      6 => 6,
      7 => 7,
      8 => 8,
      9 => 9,
      10 => 10,
    ),
    '#default_value' => (int) variable_get('css_captcha_code_length', 6),
  );
  return system_settings_form($form);
}