filtering status/error messages before display

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
gallamine's picture

I have two modules that are throwing warnings that I'm still trying to track down. In the meantime, they look very scary to my users and I want to filter them so they don't display to regular users. I've tried optionally displaying the message in the page.tpl.php file, but that's awful ugly and doesn't give me enough control on which part of the message to show.
Is there a hook I can implement that will let me get access to the status messages before they are passed to the template? I see hook_messaging(), but that only appears to let me add messages, not edit messages that are going to be displayed.
Thanks

Comments

What source is throwing the error

Screenack's picture

Is php throwing the error? I presume you've tried:

http://nadeausoftware.com/node/96

display_errors = off
display_startup_errors = off
log_errors = on

Error Reporting

kwinters's picture

And also /admin/settings/error-reporting

Do not show errors to users on a live environment. It is a security risk, amongst other issues.

Ken Winters

North Carolina

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: