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
Comments
What source is throwing the error
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
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