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

haydeniv’s picture

The 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.

devin carlson’s picture

Status: Active » Fixed

#1 provides a great explanation of how Redirect 403 to User Login works. :)

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.