Skip to content

Commit

Permalink
Merge pull request #18 from earthday47/1.x-1.x
Browse files Browse the repository at this point in the history
Issue #16 - Replace webform compenent call to removed theme_checkboxes() with 'container__checkboxes'.
  • Loading branch information
biolithic committed Mar 7, 2016
2 parents 0d9a5fa + d318b0a commit 6cf2042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/select.inc
Original file line number Diff line number Diff line change
Expand Up @@ -409,13 +409,13 @@ function _webform_render_select($component, $value = NULL, $filter = TRUE) {
if ($component['extra']['multiple']) {
// Set display as a checkbox set.
$element['#type'] = 'checkboxes';
$element['#theme_wrappers'] = array_merge(array('checkboxes'), $element['#theme_wrappers']);
$element['#theme_wrappers'] = array_merge(array('container__checkboxes'), $element['#theme_wrappers']);
$element['#process'] = array_merge(element_info_property('checkboxes', '#process'), array('webform_expand_select_ids'));
}
else {
// Set display as a radio set.
$element['#type'] = 'radios';
$element['#theme_wrappers'] = array_merge(array('radios'), $element['#theme_wrappers']);
$element['#theme_wrappers'] = array_merge(array('container__radios'), $element['#theme_wrappers']);
$element['#process'] = array_merge(element_info_property('radios', '#process'), array('webform_expand_select_ids'));
}
}
Expand Down

0 comments on commit 6cf2042

Please sign in to comment.