You are here

function webform_captcha_admin_settings in Webform Captcha 7

Page callback for admin/config/people/captcha/captcha/webform

1 string reference to 'webform_captcha_admin_settings'
webform_captcha_menu in ./webform_captcha.module
Implements of hook_menu().

File

./webform_captcha.module, line 56

Code

function webform_captcha_admin_settings() {
  $form = array();
  $form['webform_captcha_enabled_by_default'] = array(
    '#type' => 'checkbox',
    '#default_value' => variable_get('webform_captcha_enabled_by_default', 0),
    '#title' => t('Enable the default Captcha for all new Webforms when they are created'),
    '#description' => t('This setting does not impact existing Webforms.'),
  );
  $form['webform_captcha_allow_user_config'] = array(
    '#type' => 'checkbox',
    '#default_value' => variable_get('webform_captcha_allow_user_config', 0),
    '#title' => t('Display option to enable or disable captcha in Webform settings'),
    '#description' => t('Adds option to each Webform form settings that allowing users with permissoin to configure whether captcha is used.  Does not give users any other captcha options.  Will only add the default.'),
  );
  return system_settings_form($form);
}