[development] A module to change node creation confirmation messages
arcaneadam at gmail.com
Mon Jan 25 20:07:01 UTC 2010
template_preprocess_page and you can access and alter the message
array/variable before it hits the theme.
Adam A. Gregory
Drupal Developer & Consultant
On Mon, Jan 25, 2010 at 10:16 AM, Brian Vuyk <brian at brianvuyk.com> 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?
> Khalid Baheyeldin wrote:
> A module that allows message_alter kind of operations for dsm() would be
> We really need a hook for this. See here:
> On Sun, Jan 24, 2010 at 2:59 PM, James Benstead <james.benstead at gmail.com>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.
>> 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.
> Drupal optimization, development, customization and consulting.
> Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra
> Simplicity is the ultimate sophistication. -- Leonardo da Vinci
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development