[development] A module to change node creation confirmation messages

Domenic Santangelo domenics at gmail.com
Sun Jan 24 23:45:33 UTC 2010


You can still change on-the-fly strings. Just look at what's inside t() for a clue as to what to override.

t('@type %title has been created.', $t_args)

override "'@type %title has been created." to whatever.

-D


On Jan 24, 2010, at 3:13 PM, James Benstead wrote:

> I really don't think String Overrides does do this - at least, I've never been able to get it to change this particular string, I think because it's generated on the fly.
> 
> On 24 January 2010 21:03, Darth Clue <darthclue at gmail.com> wrote:
> Jim,
> 
> String Overrides ( http://drupal.org/project/stringoverrides ) will do that. I don't recall if it has token support.
> 
> Jonathan
> 
> 
> James Benstead 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.
> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100124/b0f2f8e1/attachment-0001.html 


More information about the development mailing list