comparison modules/dnd_test/dnd_test.module @ 31:767ebf925654

Added forcecontainer tinymce plugin, lots and lots and lots of refactorizing.
author David Eads <eads@chicagotech.org>
date Thu, 19 Mar 2009 15:58:36 -0500
parents 2d49adbd8992
children
comparison
equal deleted inserted replaced
30:2d49adbd8992 31:767ebf925654
51 ), 51 ),
52 'dnd_library_preview' => array( 52 'dnd_library_preview' => array(
53 'arguments' => array('i' => NULL), 53 'arguments' => array('i' => NULL),
54 'template' => 'dnd-library-preview', 54 'template' => 'dnd-library-preview',
55 ), 55 ),
56 'dnd_library_header' => array(
57 'arguments' => array('page' => NULL),
58 'template' => 'dnd-library-header',
59 ),
60 'dnd_library_footer' => array(
61 'arguments' => array('page' => NULL),
62 'template' => 'dnd-library-footer',
63 ),
56 ); 64 );
57 } 65 }
58 66
59 /** 67 /**
60 * Overloaded page callback. 68 * Overloaded page callback.
78 for ($i=$start + 1; $i < $end + 1; $i++) { 86 for ($i=$start + 1; $i < $end + 1; $i++) {
79 $library .= theme('dnd_library_item', $i); 87 $library .= theme('dnd_library_item', $i);
80 $editor_representations += dnd_editor_items($i); 88 $editor_representations += dnd_editor_items($i);
81 $library_previews['dnd-test-'. $i] = theme('dnd_library_preview', $i); 89 $library_previews['dnd-test-'. $i] = theme('dnd_library_preview', $i);
82 } 90 }
91 $library .= theme('dnd_library_footer', $page);
92
83 return array( 93 return array(
84 'library' => $library, 94 'library' => $library,
85 'editor_representations' => $editor_representations, 95 'editor_representations' => $editor_representations,
86 'library_previews' => $library_previews, 96 'library_previews' => $library_previews,
87 ); 97 );
160 } 170 }
161 $variables['image'] = theme('image', drupal_get_path('module', 'dnd_test') .'/img/item-'. $img .'-'. $size .'.jpg', '', '', array('class' => 'dnd-dropped', 'id' => 'dnd-id-'. $i)); 171 $variables['image'] = theme('image', drupal_get_path('module', 'dnd_test') .'/img/item-'. $img .'-'. $size .'.jpg', '', '', array('class' => 'dnd-dropped', 'id' => 'dnd-id-'. $i));
162 } 172 }
163 173
164 function template_preprocess_dnd_library_header(&$variables) {} 174 function template_preprocess_dnd_library_header(&$variables) {}
175
176 function template_preprocess_dnd_library_footer(&$variables) {}