diff -up ./lightbox2.insert.inc.revert ./lightbox2.insert.inc --- ./lightbox2.insert.inc.revert 2010-03-07 23:01:46.000000000 +0000 +++ ./lightbox2.insert.inc 2010-03-24 16:08:19.000000000 +0000 @@ -10,7 +10,82 @@ * Implementation of hook_insert_styles(). */ function lightbox2_insert_styles() { - $insert_styles = lightbox2_field_formatter_info(); + $insert_styles = array(); + + $insert_styles['lightbox2--original--original'] = array( + 'label' => 'Lightbox2: original->original', + ); + + // Handle imagecache presets. + if (module_exists('imagecache')) { + $rules = array(); + if (function_exists('imagecache_presets')) { + $presets = imagecache_presets(); + foreach ($presets as $preset_id => $preset_info) { + $rules[$preset_id] = $preset_info['presetname']; + } + } + else { + $rules = _imagecache_get_presets(); + } + /* + $insert_styles['lightframe2--original--node'] = array( + 'label' => 'Lightbox2 iframe: original->node page', + ); + */ + foreach ($rules as $ruleid => $view_rule) { + $insert_styles['lightbox2--original--'. $view_rule] = array( + 'label' => 'Lightbox2: original->'. $view_rule, + ); + $insert_styles['lightbox2--'. $view_rule .'--original'] = array( + 'label' => 'Lightbox2: '. $view_rule .'->original', + ); + /* + $insert_styles['lightshow2--original--'. $view_rule] = array( + 'label' => 'Lightbox2 slideshow: original->'. $view_rule, + ); + $insert_styles['lightshow2--'. $view_rule .'--original'] = array( + 'label' => 'Lightbox2 slideshow: '. $view_rule .'->original', + ); + $insert_styles['lightframe2--'. $view_rule .'--node'] = array( + 'label' => 'Lightbox2 iframe: '. $view_rule .'->node page', + ); + */ + foreach ($rules as $rid => $lightbox_rule) { + $insert_styles['lightbox2--'. $view_rule .'--'. $lightbox_rule] = array( + 'label' => 'Lightbox2: '. $view_rule .'->'. $lightbox_rule, + ); + /* + $insert_styles['lightshow2--'. $view_rule .'--'. $lightbox_rule] = array( + 'label' => 'Lightbox2 slideshow: '. $view_rule .'->'. $lightbox_rule, + ); + */ + } + } + } + /* + if (module_exists('emfield') && module_exists('emimage')) { + $insert_styles['emimage_lightbox2'] = array( + 'label' => t('Lightbox2: Image Thumbnail -> Original'), + ); + $insert_styles['emimage_lightshow2'] = array( + 'label' => t('Lightbox2 slideshow: Image Thumbnail -> Original'), + ); + $insert_styles['emimage_lightframe2'] = array( + 'label' => t('Lightbox2 iframe: Image Thumbnail -> Content'), + ); + } + if (variable_get('lightbox2_enable_video', FALSE) && module_exists('emfield') && module_exists('emvideo')) { + $insert_styles['emvideo_lightvideo'] = array( + 'label' => t('Lightbox2: Image Thumbnail -> Full Size Video'), + ); + } + if (module_exists('filefield')) { + $insert_styles['filefield_lightframe'] = array( + 'label' => t('Lightbox2 iframe'), + ); + } + */ return $insert_styles; }