
diff -u -r1.16.2.17.2.18 lightbox2.module
--- lightbox2.module    15 Oct 2007 12:06:51 -0000      1.16.2.17.2.18
+++ lightbox2.module    23 Oct 2007 13:49:09 -0000
@@ -1,5 +1,5 @@
 <?php
-// $Id: lightbox2.module,v 1.16.2.17.2.18 2007/10/15 12:06:51 snpower Exp $
+// $Id: lightbox2.module,v 1.16.2.17 2007/09/16 13:47:16 snpower Exp $


 /**
@@ -95,24 +95,16 @@
       'description' => t('Allows the user to configure the lightbox2 settings'),
     );
   }
-
-  return $items;
-}
-
-
-/**
- * Implementation of hook_nodeapi().
- */
-function lightbox2_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
-  if (lightbox2_exclude_these_paths() != 1) {
-    if ($op == 'view') {
-      lightbox2_add_files();
-    }
-    elseif ($node->type == 'image') {
+  else {
+    if (lightbox2_exclude_these_paths() != 1) {
       lightbox2_add_files();
     }
   }
+
+  return $items;
 }

+
 /**
  * Implementation of hook_settings()
  */
