Yep, totally agree. There are some issues open to create a hook_message_alter some of which seem to have some traction, but it will be D8 before this makes it in to core. ----- Adam A. Gregory Drupal Developer & Consultant Web: AdamAGregory.com Twitter: twitter.com/adamgregory Phone: 910.808.1717 Cell: 706.761.7375 On Mon, Jan 25, 2010 at 3:10 PM, Michael Favia <michael.favia@gmail.com>wrote:
On Mon, Jan 25, 2010 at 2:07 PM, Adam Gregory <arcaneadam@gmail.com> wrote:
template_preprocess_page and you can access and alter the message array/variable before it hits the theme.
Technically it has already hit the "theme" because you're editing the preprocess function. But you are correct that hopefully this will work for a single site implementation that needs this. However the need and use for a hook at the module level is still apparent and valid. -mf