summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2007-10-04 15:28:58 (GMT)
committer Stella Power2007-10-04 15:28:58 (GMT)
commit7b915f937ab79fc17ddbdb3445177192c4911a93 (patch)
tree3a7ee62a7b6b87e964feb599d33223c1f6078165
parenta647f113d3fd3198a68eb5c04c945f3818f51fae (diff)
tidied up misc stuff
-rw-r--r--lightbox2.install1
-rw-r--r--lightbox2.module19
2 files changed, 11 insertions, 9 deletions
diff --git a/lightbox2.install b/lightbox2.install
index a26ea35..6cbbc84 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 57886d8..72af1fe 100644
--- a/lightbox2.module
+++ b/lightbox2.module
@@ -44,7 +44,14 @@ The version 2 module has several benefits over the plain Lightbox module. Note,
<li>Image Sets: group related images and navigate through them with ease - ideal for your image galleries.</li>
<li>Visual Effects: fancy pre-loader and transition when you click on the image.</li>
<li>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.</li>
-<li>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. <a href="http://drupal.org/project/image">Image</a>, <a href="http://drupal.org/project/img_assist">Image Assist</a> and <a href="http://drupal.org/project/imagefield">CCK Imagefield</a> modules are all supported (images must have the "thumbnail" or "image-thumbnail" classes).</li>
+<li>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. <a
+href="http://drupal.org/project/image">Image</a>, <a
+href="http://drupal.org/project/inline">Inline</a>, <a
+href="http://drupal.org/project/img_assist">Image Assist</a> and <a
+href="http://drupal.org/project/imagefield">CCK Imagefield</a> modules are all
+supported (images must have the "inline", "inline-image-link", "thumbnail" or "image-thumbnail" classes).</li>
<li><a href="http://drupal.org/project/imagecache">Imagecache</a> Support: adds a Lightbox2 field formatter for <a href="http://drupal.org/project/imagefield">CCK imagefields</a> for your custom <a href="http://drupal.org/project/views">views</a>.</li>
<li>Image Node Link: a link to the image node can be provided within the lightbox itself.</li>
<li>Page Exclusion Capability: exclude certain pages on your site from having the lightbox2 functionality.</li>
@@ -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);
}