You are here

function _phrase_captcha_available_word_challenges in CAPTCHA Pack 8

Same name and namespace in other branches
  1. 5 text_captcha/phrase_captcha/phrase_captcha.module \_phrase_captcha_available_word_challenges()
  2. 6 text_captcha/phrase_captcha/phrase_captcha.inc \_phrase_captcha_available_word_challenges()
  3. 7 text_captcha/phrase_captcha/phrase_captcha.module \_phrase_captcha_available_word_challenges()

Return array with available word challenges.

2 calls to _phrase_captcha_available_word_challenges()
PhraseCaptchaSettingsForm::buildForm in text_captcha/modules/phrase_captcha/src/Form/PhraseCaptchaSettingsForm.php
Form constructor.
_phrase_captcha_enabled_word_challenges in text_captcha/modules/phrase_captcha/phrase_captcha.module
Return enabled challenges.

File

text_captcha/modules/phrase_captcha/phrase_captcha.module, line 165
Implementation of a phrase based CAPTCHA, for use with the CAPTCHA module.

Code

function _phrase_captcha_available_word_challenges() {
  return [
    '_phrase_captcha_word_question_word_index' => 'Word index',
    '_phrase_captcha_word_question_alphabetical_misplaced' => 'Alphabetical misplacement',
    '_phrase_captcha_word_question_double_occurence' => 'Double occurence',
  ];
}