comparison dnd.module @ 3:5df0783706f7

Reorganized layout of module and repo a bit.
author David Eads <eads@chicagotech.org>
date Tue, 17 Feb 2009 15:46:36 -0600
parents 5a44c430b7ac
children c2eb995212bf
comparison
equal deleted inserted replaced
2:5a44c430b7ac 3:5df0783706f7
75 * callback should be smart about attachment and detachment 75 * callback should be smart about attachment and detachment
76 */ 76 */
77 function dnd_process_textarea($element, $form_state) { 77 function dnd_process_textarea($element, $form_state) {
78 if ($element['#dnd-enabled']) { 78 if ($element['#dnd-enabled']) {
79 79
80 drupal_add_js(drupal_get_path('module', 'dnd') .'/dnd/dnd.js'); 80 drupal_add_js(drupal_get_path('module', 'dnd') .'/js/dnd.js');
81 drupal_add_js(drupal_get_path('module', 'dnd') .'/js/dnd-library.js', 'footer'); 81 drupal_add_js(drupal_get_path('module', 'dnd') .'/js/dnd-library.js');
82 82
83 $settings = array(); 83 $settings = array();
84 84
85 // We take a string or an 85 // We take a string or an
86 if (is_string($element['#dnd-settings'])) { 86 if (is_string($element['#dnd-settings'])) {