when i had a form in drupal 6 there was an extra wrapper around a label and field, like <div class=​"form-item" id=​"edit-submitted-fieldname-wrapper">​. In drupal 7 this is missing! Instead "form-item" class has moved up one level to class="form-item webform-component webform-component-select"
so in effect the double wrapper has been reduced to one and i miss it! how can i get it back?

Comments

quicksketch’s picture

Category: feature » support
Status: Active » Fixed

so in effect the double wrapper has been reduced to one and i miss it! how can i get it back?

You can override theme_webform_element() to add the second wrapper back if you like. It was intentionally removed in D7 (and was only added in D6 because there wasn't any way to add classes to the existing wrappers).

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.