changed default value for lightbox2_trigger_image_size variable.
authorStella Power
Mon, 21 Jan 2008 21:11:42 +0000 (21:11 +0000)
committerStella Power
Mon, 21 Jan 2008 21:11:42 +0000 (21:11 +0000)
lightbox2.module

index 4e3da31..e0e8bcc 100644 (file)
@@ -289,7 +289,7 @@ function lightbox2_auto_image_handling_settings_form() {
       '#multiple' => TRUE,
       '#title' => t('Image trigger size'),
       '#options' => $size_options,
-      '#default_value' => variable_get('lightbox2_trigger_image_size', ''),
+      '#default_value' => variable_get('lightbox2_trigger_image_size', array('thumbnail' => t('Thumbnail'))),
       '#description' => t('Select which image size, when clicked on, will automatically trigger the lightbox.  This only applies to images uploaded with the Image module.'),
     );
   }
@@ -391,7 +391,7 @@ function lightbox2_add_files() {
   if (variable_get('lightbox2_flickr', true)) {
     $image_node_classes .= "img.flickr-photo-img,";
   }
-  $trigger_sizes = variable_get('lightbox2_trigger_image_size', '');
+  $trigger_sizes = variable_get('lightbox2_trigger_image_size', array('thumbnail' => t('Thumbnail')));
   foreach ($trigger_sizes as $size) {
     $image_node_classes .= "img.$size, img.image-$size,";
   }