filtering status/error messages before display

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by gallamine on October 11, 2010 at 12:02pm

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

Categories: , ,

Comments

What source is throwing the error

Posted by Screenack on October 11, 2010 at 12:12pm

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

Posted by kwinters on October 11, 2010 at 12:45pm

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:

AltStyle によって変換されたページ (->オリジナル) /