Hi,

I had a form that had other theme-wrappers besides 'form', but these were stripped by bundling them together in a Multiform.

This is because Multiform simply does $current_form['#theme_wrappers'] = array('container');, instead of just replacing the 'form'-wrapper with the 'container'-wrapper.

Attached is a patch that uses array_search to perserve non-'form' theme-wrappers, while still changing the 'form' theme-wrapper to 'container'.

Kind regards
Morten

CommentFileSizeAuthor
multiform-preserve-theme-wrappers.patch812 bytesfangel
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mglaman’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

Applies clean and ensures theme wrappers are kept in place.

joseph.olstad’s picture

Status: Reviewed & tested by the community » Fixed

fixed in release 7.x-1.3

Status: Fixed » Closed (fixed)

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