comparison dnd_test/dnd_test.module @ 15:7a5f74482ee3

More cross browser work, garbage collection for timers, etc.
author David Eads <eads@chicagotech.org>
date Mon, 02 Mar 2009 23:22:37 -0600
parents ef7ad7b5baa4
children 1a77f87927dd
comparison
equal deleted inserted replaced
14:ef7ad7b5baa4 15:7a5f74482ee3
115 } 115 }
116 else { 116 else {
117 $img = 1; 117 $img = 1;
118 } 118 }
119 119
120 //$variables['image'] = theme('image', drupal_get_path('module', 'dnd_test') .'/img/item-'. $img .'-thumb.jpg');
121 $variables['image'] = '<img src="http://'. $_SERVER['HTTP_HOST'] . base_path() . drupal_get_path('module', 'dnd_test') .'/img/item-'. $img .'-thumb.jpg?dnd_id='. $i .'-M" class="drop" />'; 120 $variables['image'] = '<img src="http://'. $_SERVER['HTTP_HOST'] . base_path() . drupal_get_path('module', 'dnd_test') .'/img/item-'. $img .'-thumb.jpg?dnd_id='. $i .'-M" class="drop" />';
122 $variables['title'] = t('Lorem Ipsum @count', array('@count' => $i)); 121 $variables['title'] = t('Lorem Ipsum @count', array('@count' => $i));
123 $variables['date'] = 'Feb 18 2009'; 122 $variables['date'] = 'Feb 18 2009';
124 $variables['author'] = 'David Eads'; 123 $variables['author'] = 'David Eads';
125 foreach(array(t('S'), t('M'), t('L')) as $size) { 124 foreach(array(t('S'), t('M'), t('L')) as $size) {
139 $img = 2; 138 $img = 2;
140 } 139 }
141 else { 140 else {
142 $img = 1; 141 $img = 1;
143 } 142 }
144 $variables['image'] = theme('image', drupal_get_path('module', 'dnd_test') .'/img/item-'. $img .'-'. $size .'.jpg'); 143 $variables['image'] = theme('image', drupal_get_path('module', 'dnd_test') .'/img/item-'. $img .'-'. $size .'.jpg', 'foo', 'foo', array('class' => 'dnd-dropped'));
145 } 144 }