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 Jan 2009 01:40:59 -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 Jan 2009 01:41:00 -0000 @@ -4,7 +4,21 @@ /** * Implementation of hook_uninstall(). */ +function r4032login_install() { + // 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_uninstall(). + */ function r4032login_uninstall() { + // Restore the old 403 path. + variable_set('site_403', variable_get('r4032login_old_site_403', variable_get('site_403', ''))); + + variable_del('r4032login_old_site_403'); variable_del('r4032login_display_denied_message'); variable_del('r4032login_user_register_message'); }