On Thu, Apr 10, 2008 at 11:25 PM, Zohar Stolar <z.stolar@gmail.com> wrote:
[...]
On the other hand, there should be a way of selectively not displaying some or all messages, in a comfortable manner. How about a hook_message_alter? Has this ever been discussed?

I actually wrote a patch to add a hook_message_alter, but after some investigation it turned out not to be a viable solution. Among other issues, messages do not have a unique identifier that lets you target them individually, and errors in the implementations of the hook_message_alter hook only show up on the next page load.