Index: codefilter.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/codefilter/codefilter.info,v
retrieving revision 1.2.2.2
diff -u -r1.2.2.2 codefilter.info
--- codefilter.info	27 Dec 2006 13:23:38 -0000	1.2.2.2
+++ codefilter.info	29 Nov 2007 19:25:15 -0000
@@ -1,3 +1,4 @@
 ; $Id: codefilter.info,v 1.2.2.2 2006/12/27 13:23:38 unconed Exp $
 name = Code Filter
 description = Provides tags for automatically escaping and formatting large pieces of code.
+core = 6.x
\ No newline at end of file
Index: codefilter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/codefilter/codefilter.module,v
retrieving revision 1.21.2.5
diff -u -r1.21.2.5 codefilter.module
--- codefilter.module	28 Dec 2006 22:49:07 -0000	1.21.2.5
+++ codefilter.module	29 Nov 2007 19:25:15 -0000
@@ -14,12 +14,10 @@
 }

 /**
- * Implementation of hook_menu()
+ * Implementation of hook_init()
  */
-function codefilter_menu($may_cache) {
-  if (!$may_cache) {
-    drupal_add_css(drupal_get_path('module', 'codefilter') . '/codefilter.css');
-  }
+function codefilter_init() {
+  drupal_add_css(drupal_get_path('module', 'codefilter') .'/codefilter.css', 'module', 'all', FALSE);
 }

 /**
@@ -87,6 +85,9 @@
   return str_replace(array("\r", "\n"), array('', '&#10;'), check_plain(str_replace('\"', '"', $text)));
 }

+/**
+ * Implementation of hook_filter()
+ */
 function codefilter_filter($op, $delta = 0, $format = -1, $text = '') {
   switch ($op) {
     case 'list':
@@ -102,7 +103,7 @@
       $text = preg_replace('@[\[<](\?php|%)(.+?)(\?|%)[\]>]@se', "'\xFEphp\xFF'. codefilter_escape('\\2') .'\xFE/php\xFF'", $text);
       return $text;

-    case "process":
+    case 'process':
       $text = preg_replace('@\xFEcode\xFF(.+?)\xFE/code\xFF@se', "codefilter_process_code('$1')", $text);
       $text = preg_replace('@\xFEphp\xFF(.+?)\xFE/php\xFF@se', "codefilter_process_php('$1')", $text);
       return $text;
@@ -111,5 +112,3 @@
       return $text;
   }
 }
-
-
