You are here

function lost_character_captcha_settings_form_pre_render in CAPTCHA Pack 7

Same name and namespace in other branches
  1. 5 text_captcha/lost_character_captcha/lost_character_captcha.module \lost_character_captcha_settings_form_pre_render()
  2. 6 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 46
Functionality and helper functions for LOST CHARACTER CAPTCHA administration.

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;
}