You are here

function webform_element_wrapper in Webform 6.3

A Form API #post_render function. Wraps displayed elements in their label.

Note: this entire function may be removed in Drupal 7, which supports #theme_wrappers natively.

22 string references to 'webform_element_wrapper'
_webform_display_component in ./webform.api.php
Display the result of a submission for a component.
_webform_display_date in components/date.inc
Implements _webform_display_component().
_webform_display_email in components/email.inc
Implements _webform_display_component().
_webform_display_fieldset in components/fieldset.inc
Implements _webform_display_component().
_webform_display_file in components/file.inc
Implements _webform_display_component().

... See full list

File

./webform.module, line 2574

Code

function webform_element_wrapper($content, $elements) {
  if (isset($elements['#theme_wrappers'])) {
    foreach ($elements['#theme_wrappers'] as $theme_wrapper) {
      $content = theme($theme_wrapper, $elements, $content);
    }
  }
  return $content;
}