Mercurial > defr > drupal > scald > dnd
comparison dnd.module @ 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 | af6627970bc4 |
comparison
equal
deleted
inserted
replaced
33:6947c6579d40 | 34:a9dc86da7be8 |
---|---|
108 drupal_add_js(array( | 108 drupal_add_js(array( |
109 'dndEnabledLibraries' => array($element['#id'] => $settings), | 109 'dndEnabledLibraries' => array($element['#id'] => $settings), |
110 ), 'setting'); | 110 ), 'setting'); |
111 | 111 |
112 // Generate | 112 // Generate |
113 $element['#prefix'] .= '<div class="dnd-library-wrapper" id="'. $settings['library_id'] .'"></div>'; | 113 $element['#prefix'] .= '<div class="dnd-library-wrapper" id="'. $settings['library_id'] .'"></div><div class="dnd-fields-wrapper">'; |
114 $element['#suffix'] = '</div>'; | |
115 if (module_exists('mee')) { | |
116 drupal_add_css(drupal_get_path('module', 'mee') .'/css/mee.css'); | |
117 } | |
114 | 118 |
115 } | 119 } |
116 return $element; | 120 return $element; |
117 } | 121 } |
118 | 122 |