function _phrase_captcha_enabled_word_challenges in CAPTCHA Pack 5
Same name and namespace in other branches
- 8 text_captcha/modules/phrase_captcha/phrase_captcha.module \_phrase_captcha_enabled_word_challenges()
- 6 text_captcha/phrase_captcha/phrase_captcha.inc \_phrase_captcha_enabled_word_challenges()
- 7 text_captcha/phrase_captcha/phrase_captcha.module \_phrase_captcha_enabled_word_challenges()
2 calls to _phrase_captcha_enabled_word_challenges()
- phrase_captcha_captcha in text_captcha/
phrase_captcha/ phrase_captcha.module - Implementation of hook_captcha
- phrase_captcha_settings_form in text_captcha/
phrase_captcha/ phrase_captcha.module - Administration form
File
- text_captcha/
phrase_captcha/ phrase_captcha.module, line 183
Code
function _phrase_captcha_enabled_word_challenges() {
$word_challenges = variable_get('phrase_captcha_word_selection_challenges', array());
if ($word_challenges) {
return array_keys(array_filter($word_challenges));
}
else {
return array_keys(_phrase_captcha_available_word_challenges());
}
}