_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
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);
}
?>


