Index: customerror.module =================================================================== RCS file: /cvs/drupal/contributions/modules/customerror/customerror.module,v retrieving revision 1.17.2.4 diff -u -r1.17.2.4 customerror.module --- customerror.module 6 Oct 2008 01:03:09 -0000 1.17.2.4 +++ customerror.module 8 Mar 2009 00:33:15 -0000 @@ -152,7 +152,6 @@ */ function customerror_page() { $code = arg(1); - $_SESSION['destination'] = $_REQUEST['destination']; switch($code) { case 403: @@ -188,20 +187,6 @@ return $content; } -function customerror_user($op, $edit, $user) { - switch($op) { - case 'login': - // Check if we have a destination saved in the session - if(!empty($_SESSION['destination'])) { - // If there is one, then set the REQUEST destination to it - $_REQUEST['destination'] = $_SESSION['destination']; - // And clear the one in the session - unset($_SESSION['destination']); - // user.module then does a drupal_goto() for us after we return from here - } - } -} - function customerror_check_redirect() { $destination = $_REQUEST['destination']; if (empty($destination)) {