template_preprocess_page and you can access and alter the message array/variable before it hits the theme. ----- 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 10:16 AM, Brian Vuyk <[email protected]> wrote: > +1 for hook_message_alter() in core. > > I am not sure how this could be implemented nicely in contrib, though. Do > we have a way, using existing hooks, to access the $_SESSION['messages'] > array after core and all other modules have added their messages to it? > > Brian > > Khalid Baheyeldin wrote: > > A module that allows message_alter kind of operations for dsm() would be > great. > > We really need a hook for this. See here: > > http://drupal.org/node/127262 > http://drupal.org/node/234320 > http://drupal.org/node/462160 > > On Sun, Jan 24, 2010 at 2:59 PM, James Benstead > <[email protected]>wrote: > >> Currently the message that is shown to a user when a node is created >> - @type %title has been created. - seems to be hardcoded into node.module. >> I've just helped someone on IRC change this, but it's quite a long-winded >> process. Would a module be welcome? It would unset the message set on line >> 463 of node.pages.inc, and allow the user to set their own message on a >> per-nodetype basis. Integrated with Token and CCK. >> >> --Jim >> -- >> My IM and Skype details are at http://state68.com/contact. >> -- >> At some point I'll probably tell you to buy The Borrible Trilogy. >> The simplest way to shut me up is to buy it now - search Amazon. >> > > > > -- > Khalid M. Baheyeldin > 2bits.com, Inc. > http://2bits.com > Drupal optimization, development, customization and consulting. > Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra > Simplicity is the ultimate sophistication. -- Leonardo da Vinci > > >
