summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2008-01-21 21:11:59 (GMT)
committer Stella Power2008-01-21 21:11:59 (GMT)
commitc52a11effb30fce5589f164b5cf9e6dea36f2cf4 (patch)
tree7750b1f887b34fac0180c3a7b30c9ab34527e106
parentc4528bcd40aaec6782f11ed220debdc92620838b (diff)
changed default value for lightbox2_trigger_image_size variable.
-rw-r--r--lightbox2.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/lightbox2.module b/lightbox2.module
index 5cdefb8..11b7f09 100644
--- a/lightbox2.module
+++ b/lightbox2.module
@@ -300,7 +300,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.'),
);
@@ -405,7 +405,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,";
}