function riddler_captcha_validate in Captcha Riddler 6
Same name and namespace in other branches
- 8 riddler.module \riddler_captcha_validate()
- 7 riddler.module \riddler_captcha_validate()
1 string reference to 'riddler_captcha_validate'
- riddler_captcha in ./
riddler.module - Implementation of hook_captcha().
File
- ./
riddler.module, line 179 - Adds a question and answer type to the Captcha module.
Code
function riddler_captcha_validate($solution, $response) {
$solution = str_ireplace(',', ' ', $solution);
$solution = explode(' ', $solution);
return in_array(drupal_strtolower($response), $solution);
}