Index: customerror.install
===================================================================
RCS file: customerror.install
diff -N customerror.install
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ customerror.install	1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,25 @@
+<?php
+//* $Id$
+function customerror_install() {
+  if (!variable_get('site_403', false)) {
+    variable_set('site_403', 'customerror/403');
+  }
+  if (!variable_get('site_404', false)) {
+    variable_set('site_404', 'customerror/404');
+  }
+}
+
+function customerror_uninstall() {
+  if (variable_get('site_403', '') == 'customerror/403') {
+    variable_del('site_403');
+  }
+  if (variable_get('site_404', '') == 'customerror/404') {
+    variable_del('site_404');
+  }
+  variable_del('customerror_403_title');
+  variable_del('customerror_403');
+  variable_del('customerror_403_php');
+  variable_del('customerror_404_title');
+  variable_del('customerror_404');
+  variable_del('customerror_404_php');
+}
