You are here

function captcha_requirements in CAPTCHA 7

Same name and namespace in other branches
  1. 8 captcha.install \captcha_requirements()
  2. 5.3 captcha.module \captcha_requirements()
  3. 6.2 captcha.install \captcha_requirements()
  4. 6 captcha.module \captcha_requirements()

Implements of hook_requirements().

File

./captcha.install, line 126
Install, update and uninstall functions for the CAPTCHA module.

Code

function captcha_requirements($phase) {
  $requirements = array();
  $t = get_t();
  if ($phase == 'runtime' && variable_get('captcha_enable_stats', FALSE)) {

    // Show the wrong response counter in the status report.
    $requirements['captcha_wrong_response_counter'] = array(
      'title' => $t('CAPTCHA'),
      'value' => format_plural(variable_get('captcha_wrong_response_counter', 0), 'Already 1 blocked form submission', 'Already @count blocked form submissions'),
      'severity' => REQUIREMENT_INFO,
    );
  }
  return $requirements;
}