Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Overview
The Custom 403 Per Path module allows to set custom messages on the 403 Access Denied page according to the path.
For example, you can set path: '/node/add' and message: 'You need to be logged in!' in the settings (/admin/settings/custom_403_per_path). When a visitor goes to '/node/add' and gets Access Denied, the message 'You need to be logged in!' will be set with drupal_set_message() type 'warning'.
Experimental Module
This module was built for a specific purpose, but could possibly be adjusted to do more than only set a drupal message. Please suggest any features/improvements in the issue queue.
Note about the code
This module is very simple. Much of the module's administration settings code is based off of code from String Overrides.
Similar Modules
- Custom 403 - Custom 403 Messages per Role.
- Redirect 403 to User Login - Redirects 403 to /user/login and sets a message.
It works with LoginToboggan and should work with whatever the site's Access Denied page is.
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - No further development
No longer developed by its maintainers. - Module categories: Access Control
- Created by dooug on , updated