Index: greybox.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/greybox/greybox.module,v
retrieving revision 1.1
diff -u -p -r1.1 greybox.module
--- greybox.module      23 Oct 2006 19:42:14 -0000      1.1
+++ greybox.module      11 Dec 2006 18:10:04 -0000
@@ -1,15 +1,6 @@
 <?php

 /**
- * Implementation of hook_nodeapi().
- */
-function greybox_nodeapi(&$node, $op) {        
-  if ($op == "view" && variable_get("greybox_enable", true)) {
-    greybox_add_files();
-  }
-}
-
-/**
  * Implementation of hook_perm().
  */
 function greybox_perm() {
@@ -20,8 +11,14 @@ function greybox_perm() {
  * Implementation of hook_menu().
  */
 function greybox_menu($maycache) {
+ // Add the greybox files on every page
+ if (variable_get("greybox_enable", true)) {
+    greybox_add_files();
+ }
+
  $items = array();

+if($may_cache) {
  $items[] = array(
     'path' => 'admin/settings/greybox',
     'title' => t('greybox'),
@@ -31,6 +28,7 @@ function greybox_menu($maycache) {
     'access' => user_access('administer greybox'),
     'type' => MENU_NORMAL_ITEM
    );
+}
   return $items;
 }
