Mercurial > defr > drupal > scald > dnd
comparison dnd_test/dnd_test.module @ 23:a72403cfa9a8
Simple tweak to add id to editor images in test module.
| author | David Eads <eads@chicagotech.org> |
|---|---|
| date | Tue, 10 Mar 2009 13:55:27 -0500 |
| parents | 69db20fdbac2 |
| children | 4f58fa0a9a6d |
comparison
equal
deleted
inserted
replaced
| 22:40b5dd396feb | 23:a72403cfa9a8 |
|---|---|
| 164 $img = 2; | 164 $img = 2; |
| 165 } | 165 } |
| 166 else { | 166 else { |
| 167 $img = 1; | 167 $img = 1; |
| 168 } | 168 } |
| 169 $variables['image'] = theme('image', drupal_get_path('module', 'dnd_test') .'/img/item-'. $img .'-'. $size .'.jpg', 'foo', 'foo', array('class' => 'dnd-dropped')); | 169 $variables['image'] = theme('image', drupal_get_path('module', 'dnd_test') .'/img/item-'. $img .'-'. $size .'.jpg', '', '', array('class' => 'dnd-dropped', 'id' => 'dnd-id-'. $i)); |
| 170 } | 170 } |
| 171 | 171 |
| 172 function template_preprocess_dnd_library_header(&$variables) {} | 172 function template_preprocess_dnd_library_header(&$variables) {} |
