changeset 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 5328b450f7b7
files css/mee.css mee.module
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/css/mee.css	Wed Jun 03 14:39:24 2009 +0200
+++ b/css/mee.css	Wed Jun 03 14:53:59 2009 +0200
@@ -21,6 +21,9 @@
   float: right;
   width: 25%;
 }
+.mee-filter-form {
+  clear: left;
+}
 .dnd-library-wrapper .header {
   padding: 3px 4px;
   background-color: #ccc;
--- 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.