You are here

function _math_captcha_enabled_challenges in CAPTCHA Pack 5

Same name and namespace in other branches
  1. 8 math_captcha/math_captcha.module \_math_captcha_enabled_challenges()
  2. 6 math_captcha/math_captcha.module \_math_captcha_enabled_challenges()
  3. 7 math_captcha/math_captcha.module \_math_captcha_enabled_challenges()

Function for getting the enabled challenges (e.g. for use as checkboxes default_value)

2 calls to _math_captcha_enabled_challenges()
math_captcha_captcha in math_captcha/math_captcha.module
Implementation of hook_captcha().
math_captcha_settings_form in math_captcha/math_captcha.module
Math CAPTCHA settings form

File

math_captcha/math_captcha.module, line 28

Code

function _math_captcha_enabled_challenges() {
  $enabled = variable_get('math_captcha_enabled_challenges', array(
    'addition' => 'addition',
    'subtraction' => 'subtraction',
    'multiplication' => 'multiplication',
  ));
  return $enabled;
}