changeset 34:a9dc86da7be8

Change markup to be able to position more than one thing next to the library
author Franck Deroche <franck@defr.org>
date Fri, 18 Sep 2009 15:08:22 +0200
parents 6947c6579d40
children abc9d39cfbe9
files dnd.module
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dnd.module	Thu Jun 04 13:00:27 2009 +0200
+++ b/dnd.module	Fri Sep 18 15:08:22 2009 +0200
@@ -110,7 +110,11 @@
     ), 'setting');
 
     // Generate 
-    $element['#prefix'] .= '<div class="dnd-library-wrapper" id="'. $settings['library_id'] .'"></div>';
+    $element['#prefix'] .= '<div class="dnd-library-wrapper" id="'. $settings['library_id'] .'"></div><div class="dnd-fields-wrapper">';
+    $element['#suffix'] = '</div>';
+    if (module_exists('mee')) {
+      drupal_add_css(drupal_get_path('module', 'mee') .'/css/mee.css');
+    }
 
   }
   return $element;