theme_captcha
- Versions
- 6
theme_captcha($element)
Theme function for a CAPTCHA element.
Render it in a fieldset if a description of the CAPTCHA is available. Render it as is otherwise.
Code
contrib/captcha/captcha.module, line 270
<?php
function theme_captcha($element) {
if (!empty($element['#description']) && isset($element['captcha_widgets'])) {
$fieldset = array(
'#type' => 'fieldset',
'#title' => t('CAPTCHA'),
'#description' => $element['#description'],
'#children' => $element['#children'],
'#attributes' => array('class' => 'captcha'),
);
return theme('fieldset', $fieldset);
}
else {
return '<div class="captcha">'. $element['#children'] .'</div>';
}
}
?>


