Skip to main content
1 of 4
opi
  • 336
  • 1
  • 3

Not really (there's no hook_access_denied!)

But you can set which pages are displayed when 403 & 404 errors occurs (admin/settings/error-reporting).

I guess you can add a new page in your hook_menu(), then set this page as the 403 error callback. When your custom menu callbach is hit, you know you're outputting the "access denied" page!

opi

opi
  • 336
  • 1
  • 3