Index: INSTALL.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/customerror/INSTALL.txt,v
retrieving revision 1.4
diff -u -p -r1.4 INSTALL.txt
--- INSTALL.txt	21 Nov 2005 15:18:56 -0000	1.4
+++ INSTALL.txt	21 May 2008 20:12:13 -0000
@@ -2,7 +2,7 @@ $Id: INSTALL.txt,v 1.4 2005/11/21 15:18:
 
 Requirements:
 -------------
-This module requires drupal 4.5.x or greater.
+This module requires drupal 6.x or greater.
 
 Installation:
 -------------
Index: customerror.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/customerror/customerror.info,v
retrieving revision 1.4
diff -u -p -r1.4 customerror.info
--- customerror.info	25 Jun 2007 20:25:27 -0000	1.4
+++ customerror.info	21 May 2008 20:12:13 -0000
@@ -1,4 +1,4 @@
 ; $Id: customerror.info,v 1.4 2007/06/25 20:25:27 kbahey Exp $
 name = Custom Error
 description = Enables the creation of custom error pages for 404 and 403 errors, as well as redirects for 404s.
-
+core=6.x
Index: customerror.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/customerror/customerror.module,v
retrieving revision 1.16
diff -u -p -r1.16 customerror.module
--- customerror.module	27 Dec 2007 20:11:38 -0000	1.16
+++ customerror.module	21 May 2008 20:12:13 -0000
@@ -40,8 +40,8 @@ function _customerror_fetch_error($error
 /**
  * Implementation of hook_help().
  */
-function customerror_help($section) {
-  switch ($section) {
+function customerror_help($path, $arg) {
+  switch ($path) {
     case 'admin/modules#description':
       $output = t('Enables the creation of custom error pages for 404 and 403 errors.');
       break;
@@ -97,27 +97,23 @@ function customerror_admin_settings()
   return system_settings_form($form);
 }
 
-function customerror_menu($may_cache) {
+function customerror_menu() {
   $items = array();
 
-  if ($may_cache) {
-    $items[] = array(
-      'path' => 'admin/settings/customerror',
-      'title' => t('Custom error'),
-      'description' => t('Administer custom error.'),
-      'callback' => 'drupal_get_form',
-      'callback arguments' => array('customerror_admin_settings'),
-      'access' => user_access('administer site configuration'),
-      'type' => MENU_NORMAL_ITEM,
-    );
-    $items[] = array(
-      'title'    => t('customerror'),
-      'path'     => 'customerror',
-      'access'   => TRUE,
-      'callback' => 'customerror_page',
-      'type'     => MENU_CALLBACK,
-      'weight'   => 0 );
-    }
+  $items['admin/settings/customerror'] = array(
+    'title' => 'Custom error',
+    'description' => 'Administer custom error.',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('customerror_admin_settings'),
+    'access arguments' => array('administer site configuration'),
+    'type' => MENU_NORMAL_ITEM,
+  );
+  $items['customerror'] = array(
+    'title'    => 'customerror',
+    'access callback'   => TRUE,
+    'page callback' => 'customerror_page',
+    'type'     => MENU_CALLBACK,
+    'weight'   => 0 );
 
   return $items;
 }
@@ -153,6 +149,17 @@ function customerror_page() {
 }
 
 /**
+ * Implementation of hook_theme().
+ */
+function customerror_theme() {
+  return array(
+    'customerror' => array(
+      'arguments' => array('error_code', 'content')
+    ),
+  );
+}
+
+/**
  * Themeable function 
  */
 function theme_customerror($error_code, $content) {
