You are here

function lost_character_captcha_settings_form_pre_render in CAPTCHA Pack 5

Same name and namespace in other branches
  1. 6 text_captcha/lost_character_captcha/lost_character_captcha.admin.inc \lost_character_captcha_settings_form_pre_render()
  2. 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.module
Function for the settings form

File

text_captcha/lost_character_captcha/lost_character_captcha.module, line 71

Code

function lost_character_captcha_settings_form_pre_render() {

  // 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');
  }
}