function lost_character_captcha_settings_form_pre_render in CAPTCHA Pack 6
Same name and namespace in other branches
- 5 text_captcha/lost_character_captcha/lost_character_captcha.module \lost_character_captcha_settings_form_pre_render()
- 7 text_captcha/lost_character_captcha/lost_character_captcha.admin.inc \lost_character_captcha_settings_form_pre_render()
Pre_render function
1 string reference to 'lost_character_captcha_settings_form_pre_render'
- lost_character_captcha_settings_form in text_captcha/
lost_character_captcha/ lost_character_captcha.admin.inc - Function for the settings form
File
- text_captcha/
lost_character_captcha/ lost_character_captcha.admin.inc, line 40
Code
function lost_character_captcha_settings_form_pre_render($form) {
// set a warning if the numbers to lose is to big and if hinting is off
if (variable_get('lost_character_captcha_quantity', 1) > 2 && !variable_get('lost_character_captcha_enable_hint', TRUE)) {
drupal_set_message(t('Losing more than two characters without indication where they are lost could be too hard for a human. Check your settings.'), 'warning');
}
return $form;
}