function theme_webform_display_email in Webform 7.4
Same name and namespace in other branches
- 6.3 components/email.inc \theme_webform_display_email()
- 7.3 components/email.inc \theme_webform_display_email()
Format the text output for this component.
1 theme call to theme_webform_display_email()
- _webform_display_email in components/
email.inc - Implements _webform_display_component().
File
- components/
email.inc, line 285 - Webform module email component.
Code
function theme_webform_display_email($variables) {
$element = $variables['element'];
$element['#value'] = empty($element['#value']) ? ' ' : $element['#value'];
return $element['#format'] == 'html' ? check_plain($element['#value']) : $element['#value'];
}