You are here

function _math_captcha_enabled_challenges in CAPTCHA Pack 8

Same name and namespace in other branches
  1. 5 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()

Get enabled math captcha challenges.

2 calls to _math_captcha_enabled_challenges()
MathCaptchaSettingsForm::buildForm in math_captcha/src/Form/MathCaptchaSettingsForm.php
Form constructor.
math_captcha_captcha in math_captcha/math_captcha.module
Implements hook_captcha().

File

math_captcha/math_captcha.module, line 44
Contains general functionality of the module.

Code

function _math_captcha_enabled_challenges() {
  return Drupal::config('math_captcha.settings')
    ->get('math_captcha_enabled_challenges');
}