diff --git a/lightbox2.install b/lightbox2.install index a26ea357b48b7ae60790e7e696b175b520a9ef63..6cbbc847b4f726b5562ad28996d7d95b5075e625 100644 --- a/lightbox2.install +++ b/lightbox2.install @@ -7,6 +7,7 @@ * just give a message */ function lightbox2_install() { + module_invoke('content', 'clear_type_cache'); watchdog('lightbox2', 'lightbox2 module installed'); } diff --git a/lightbox2.module b/lightbox2.module index 57886d83828a34588a5752f651975795f763c220..72af1fe9a548d2d0e4e7cd50b10c35a7c5f57d37 100644 --- a/lightbox2.module +++ b/lightbox2.module @@ -44,7 +44,14 @@ The version 2 module has several benefits over the plain Lightbox module. Note,
  • Image Sets: group related images and navigate through them with ease - ideal for your image galleries.
  • Visual Effects: fancy pre-loader and transition when you click on the image.
  • Zoom Capability: larger images are reduced in size so they fit snugly inside the browser window. A zoom button can then be clicked on to see it in its original size.
  • -
  • Automatic Image Node Detection: configurable automatic re-formatting of image node thumbnails, so there is no need to add \'rel="lightbox"\' to each image node link on your site. Image, Image Assist and CCK Imagefield modules are all supported (images must have the "thumbnail" or "image-thumbnail" classes).
  • +
  • Automatic Image Node Detection: configurable automatic re-formatting of +image node thumbnails, so there is no need to add \'rel="lightbox"\' to each +image node link on your site. Image, Inline, Image Assist and CCK Imagefield modules are all +supported (images must have the "inline", "inline-image-link", "thumbnail" or "image-thumbnail" classes).
  • Imagecache Support: adds a Lightbox2 field formatter for CCK imagefields for your custom views.
  • Image Node Link: a link to the image node can be provided within the lightbox itself.
  • Page Exclusion Capability: exclude certain pages on your site from having the lightbox2 functionality.
  • @@ -279,10 +286,7 @@ function lightbox2_add_files() { // Lightbox2 Plus if (!variable_get('lightbox2_lite', false)) { - $css = path_to_theme() .'/lightbox.css'; - if (!file_exists($css)) { - $css = $path .'/css/lightbox.css'; - } + $css = $path .'/css/lightbox.css'; if (function_exists('drupal_add_css')) { drupal_add_css($css); } @@ -299,10 +303,7 @@ function lightbox2_add_files() { } // Lightbox Lite else { - $css = path_to_theme() .'/lightbox_lite.css'; - if (!file_exists($css)) { - $css = $path .'/css/lightbox_lite.css'; - } + $css = $path .'/css/lightbox_lite.css'; if (function_exists('drupal_add_css')) { drupal_add_css($css); }