Mercurial > defr > drupal > scald > mee
diff mee.module @ 9:57e611f691eb
Add a wrapper around the filter form
This allows us to add a clear: left; to put it under the rest of the MEE,
which unbreaks the layout.
| author | Franck Deroche <franck@defr.org> |
|---|---|
| date | Wed, 03 Jun 2009 14:53:59 +0200 |
| parents | c3b22723b82f |
| children | 272628486e75 |
line wrap: on
line diff
--- a/mee.module Wed Jun 03 14:39:24 2009 +0200 +++ b/mee.module Wed Jun 03 14:53:59 2009 +0200 @@ -371,6 +371,8 @@ $format = isset($element['#value'][$filter_key]) ? $element['#value'][$filter_key] : FILTER_FORMAT_DEFAULT; $parents = array_merge($element['#parents'] , array($filter_key)); $element[$filter_key] = filter_form($format, 1, $parents); + $element[$filter_key]['#prefix'] = '<div class="mee-filter-form">'; + $element[$filter_key]['#suffix'] = '</div>'; } // Used so that hook_field('validate') knows where to flag an error.
