You are here

function webform_element_title_display in Webform 6.3

Same name and namespace in other branches
  1. 7.4 webform.module \webform_element_title_display()
  2. 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().

... See full list

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;
}