Closed (fixed)
Project:
Redirect 403 to User Login
Version:
7.x-1.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2013 at 04:07 UTC
Updated:
13 Sep 2013 at 16:41 UTC
i'm learning drupal development.
Reading the module source code, I could not figure out how the module could capture a 404,403 event and do a redirection.
I checked drupal api and there is no something like hook api for 404,403
Comments
Comment #1
haydeniv commentedThe module works by changing the site configuration under "Default 403 (access denied) page " at /admin/config/system/site-information to "r4032login".
It then it implements hook_menu() with a callback to r4032login_redirect() to create a path to that page and uses header redirects based on the configuration that has been set by the user.
Hope that makes sense.
Comment #2
devin carlson commented#1 provides a great explanation of how Redirect 403 to User Login works. :)