function boost_captcha_settings_form in Boost Captcha 6
Same name and namespace in other branches
- 7 boost_captcha.module \boost_captcha_settings_form()
Boost captcha admin settings form
1 string reference to 'boost_captcha_settings_form'
- boost_captcha_menu in ./
boost_captcha.module - Implementation of hook_menu().
File
- ./
boost_captcha.module, line 172
Code
function boost_captcha_settings_form() {
$form = array();
$form['boost_captcha_filter_options'] = array(
'#type' => 'fieldset',
'#title' => t('Form level filtering options'),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
$options = array(
t('Apply on all forms.'),
t('Apply on every form except the listed forms.'),
t('Apply only on the listed forms.'),
);
$description = t("Enter one form_id per line. The '*' character is a wildcard.");
$form['boost_captcha_filter_options']['boost_captcha_filter_by_form'] = array(
'#type' => 'radios',
'#title' => t('Apply filters by form'),
'#options' => $options,
'#default_value' => variable_get('boost_captcha_filter_by_form', 2),
);
$form['boost_captcha_filter_options']['boost_captcha_filter_forms'] = array(
'#type' => 'textarea',
'#title' => t('Forms'),
'#default_value' => variable_get('boost_captcha_filter_forms', ''),
'#description' => $description,
);
$form['boost_captcha_debug'] = array(
'#type' => 'fieldset',
'#title' => t('Debug options'),
'#collapsible' => TRUE,
'#collapsed' => TRUE,
);
$form['boost_captcha_debug']['boost_captcha_enable_debug'] = array(
'#type' => 'checkbox',
'#title' => t('Enable debug mode'),
'#default_value' => variable_get('boost_captcha_enable_debug', '0'),
'#description' => t('Check this to enable debug information.'),
);
return system_settings_form($form);
}