function webform_element_title_display in Webform 6.3
Same name and namespace in other branches
- 7.4 webform.module \webform_element_title_display()
- 7.3 webform.module \webform_element_title_display()
A Form API #pre_render function. Sets display based on #title_display.
This function is used regularly in D6 for all elements, but specifically for fieldsets in D7, which don't support #title_display natively.
11 string references to 'webform_element_title_display'
- _webform_display_time in components/
time.inc - Implements _webform_display_component().
- _webform_render_date in components/
date.inc - Implements _webform_render_component().
- _webform_render_email in components/
email.inc - Implements _webform_render_component().
- _webform_render_fieldset in components/
fieldset.inc - Implements _webform_render_component().
- _webform_render_file in components/
file.inc - Implements _webform_render_component().
File
- ./
webform.module, line 2561
Code
function webform_element_title_display($element) {
if (isset($element['#title_display']) && strcmp($element['#title_display'], 'none') === 0) {
$element['#title'] = NULL;
}
return $element;
}