You are here

function webform_fieldset_prerender in Webform 7.3

Same name and namespace in other branches
  1. 6.3 components/fieldset.inc \webform_fieldset_prerender()
  2. 7.4 components/fieldset.inc \webform_fieldset_prerender()

Pre-render function to set a fieldset ID.

1 string reference to 'webform_fieldset_prerender'
_webform_render_fieldset in components/fieldset.inc
Implements _webform_render_component().

File

components/fieldset.inc, line 76
Webform module fieldset component.

Code

function webform_fieldset_prerender($element) {
  $element['#id'] = 'webform-component-' . str_replace('_', '-', implode('--', array_slice($element['#parents'], 1)));
  return $element;
}