removed support for deprecated theme('add_style',...) function calls.
authorStella Power
Thu, 14 Feb 2008 16:39:52 +0000 (16:39 +0000)
committerStella Power
Thu, 14 Feb 2008 16:39:52 +0000 (16:39 +0000)
lightbox2.module

index 77b90af..7783727 100644 (file)
@@ -497,12 +497,7 @@ function lightbox2_add_files() {
     if (variable_get('lightbox2_use_alt_layout', false)) {
       $css = $path .'/css/lightbox_alt.css';
     }
-    if (function_exists('drupal_add_css')) {
-      drupal_add_css($css);
-    }
-    else {
-      theme('add_style', $css);
-    }
+                               drupal_add_css($css);
 
     // Check to see if the Image Node Option is enabled in settings.
     if (variable_get('lightbox2_image_node', true) || variable_get('lightbox2_flickr', true) || variable_get('lightbox2_inline', true) || variable_get('lightbox2_custom_trigger_classes', '') != '') {
@@ -514,12 +509,7 @@ function lightbox2_add_files() {
   // Lightbox Lite.
   else {
     $css = $path .'/css/lightbox_lite.css';
-    if (function_exists('drupal_add_css')) {
-      drupal_add_css($css);
-    }
-    else {
-      theme('add_style', $css);
-    }
+                               drupal_add_css($css);
     drupal_add_js($path .'/js/lightbox_lite.js', 'module', $js_location);
   }
 }