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

mattmackenzie’s picture

drupal_get_messages();
drupal_set_message("blah blah blah", "reason");

works, but I still get the default content printed below $messages ("you do not have access to create content" or some such.)

Any ideas?