_captcha_get_description

Versions
5 – 6
_captcha_get_description($lang_code=NULL)

Get the description which appears above the CAPTCHA in forms. If the locale module is enabled, an optional language code can be given

▾ 2 functions call _captcha_get_description()

captcha_admin_settings in contrib/captcha/captcha.module
Form builder function for the general CAPTCHA configuration
captcha_form_alter in contrib/captcha/captcha.module
Implementation of hook_form_alter().

Code

contrib/captcha/captcha.module, line 178

<?php
function _captcha_get_description($lang_code=NULL) {
  $default = t('This question is for testing whether you are a human visitor and to prevent automated spam submissions.');
  if (module_exists('locale')) {
    if ($lang_code == NULL) {
      global $locale;
      $lang_code = $locale;
    }
    $description = variable_get("captcha_description_$lang_code", $default);
  }
  else {
    $description = variable_get('captcha_description', $default);
  }
  return filter_xss_admin($description);
}
?>