? .svn
? 354826.patch
Index: README.TXT
===================================================================
RCS file: /cvs/drupal/contributions/modules/r4032login/README.TXT,v
retrieving revision 1.2
diff -u -p -r1.2 README.TXT
--- README.TXT	3 Oct 2008 20:15:00 -0000	1.2
+++ README.TXT	6 May 2009 00:52:45 -0000
@@ -12,10 +12,7 @@ Makes for a much more user-friendly Drup
 Installation
 --------------------------------------------------------------------------------
 
-1. Extract and enable the r4032login.module
-2. Navigate to /admin/settings/error-reporting
-3. In the "Default 403 (access denied) page" field, type: r4032login
-4. Click the "Save configuration" button
+Extract and enable the r4032login.module
 
 Support
 --------------------------------------------------------------------------------
Index: r4032login.install
===================================================================
RCS file: /cvs/drupal/contributions/modules/r4032login/r4032login.install,v
retrieving revision 1.1.4.2
diff -u -p -r1.1.4.2 r4032login.install
--- r4032login.install	6 Oct 2008 15:16:33 -0000	1.1.4.2
+++ r4032login.install	6 May 2009 00:52:45 -0000
@@ -2,9 +2,28 @@
 // $Id: r4032login.install,v 1.1.4.2 2008/10/06 15:16:33 deekayen Exp $
 
 /**
+ * Implementation of hook_enable().
+ */
+function r4032login_enable() {
+  // Save the old 403 path, so we can restore it on uninstall.
+  variable_set('r4032login_old_site_403', variable_get('site_403', ''));
+  // Set the new 403 path.
+  variable_set('site_403', 'r4032login');
+}
+
+/**
+ * Implementation of hook_disable().
+ */
+function r4032login_disable() {
+  // Restore the old 403 path.
+  variable_set('site_403', variable_get('r4032login_old_site_403', variable_get('site_403', '')));
+}
+
+/**
  * Implementation of hook_uninstall().
  */
 function r4032login_uninstall() {
+  variable_del('r4032login_old_site_403');
   variable_del('r4032login_display_denied_message');
   variable_del('r4032login_user_register_message');
 }
