diff dnd.module @ 21:69db20fdbac2

Cleanup and refactoring.
author David Eads <eads@chicagotech.org>
date Tue, 10 Mar 2009 13:46:49 -0500
parents 89fe0aca43d4
children 9a92410be362
line wrap: on
line diff
--- a/dnd.module	Sun Mar 08 20:29:57 2009 -0500
+++ b/dnd.module	Tue Mar 10 13:46:49 2009 -0500
@@ -56,8 +56,7 @@
 
 /**
  * Settings array:
- * What should it take, if anything?  Probably a source...
- * maybe editor specific configuration shit? 
+ * What should it take, if anything?  Probably a source * maybe editor specific configuration shit? 
  *
  * - source for library json/ajax shit
  * - target selector
@@ -74,7 +73,7 @@
  *   configuration options
  *   callback should be smart about attachment and detachment
  */
-function dnd_process_textarea($element, $form_state) {
+function dnd_process_textarea($element, $edit, $form_state, $form) {
   if ($element['#dnd-enabled']) {
 
     // BeautyTips
@@ -112,7 +111,7 @@
       'dndEnabledLibraries' => array($element['#id'] => $settings),
     ), 'setting');
 
-    $element['#prefix'] = theme('dnd_library', $element, $settings);
+    $element['#suffix'] = theme('dnd_library', $element, $settings) . $element['#suffix'];
   }
   return $element;
 }