Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By mattmackenzie on
Is there a way for me to augment the access denied page with a custom message when I deny access? e.g.
"
Access Denied
Why? Well, you've already uploaded 20mb of content, and if you want to upload more you must purchase a premium account.
"
Thanks in advance for any ideas...
Comments
drupal_get_messages();drupal_
works, but I still get the default content printed below $messages ("you do not have access to create content" or some such.)
Any ideas?