<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>Well, if he writes it and submits it to Util, I will test it and commit when I have a chance.<BR>&nbsp;</DIV>
<P><FONT face="bookman old style, new york, times, serif" color=#ff007f size=4><EM><STRONG>Nancy E. Wichmann, PMP</STRONG></EM></FONT></P>
<P><FONT face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</FONT></P>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: Courier New, courier, monaco, monospace, sans-serif"><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Shai Gluskin &lt;shai@content2zero.com&gt;<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> development@drupal.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Sun, January 24, 2010 9:30:03 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [development] A module to change node creation confirmation messages<BR></FONT><BR>I think the module (or sub-module within util) as suggested by James is a good idea. The string overrides module works well for simple strings. But if there are tokens in the t() function, it is impossible to use the GUI alone; you must inspect the code and find the t() function in question.&nbsp;
<DIV><BR></DIV>
<DIV>I think that providing bits of commonly needed functionality via modules is exactly what Drupal's modular system is about. And I do believe the use-case presented here related to the dsm after a node save is a common one that people would want to change. I just did the other day.</DIV>
<DIV><BR></DIV>
<DIV>I'd also note that James seems fairly pumped to do this work; why discourage him? Of course we want to minimize duplication. But there is no duplication here. String overrides: dig through the code to find the string you want to override. James proposal: create functionality via the GUI for replacing a specific string, commonly encountered that is harder to override because it has a variable in it. This is apples and oranges. No duplication at all.</DIV>
<DIV><BR></DIV>
<DIV>My vote is to encourage James to write it.</DIV>
<DIV><BR></DIV>
<DIV>Shai</DIV>
<DIV><BR>
<DIV class=gmail_quote>On Sun, Jan 24, 2010 at 9:16 PM, Darth Clue <SPAN dir=ltr>&lt;<A href="mailto:darthclue@gmail.com" target=_blank rel=nofollow ymailto="mailto:darthclue@gmail.com">darthclue@gmail.com</A>&gt;</SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">I think what may be missing from string overrides is the knowledge of what string to use to make the override work. &nbsp;Not sure if this really should be an issue as if you are changing strings you should know what you're doing.. Especially since you could be impacting things like locale or other modules that depend on those strings.<BR><BR>Jonathan<BR><BR>nan wich wrote:<BR>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<DIV class=im>If StringOverrides does this - and I trust Dave - then by all means use that. This is not something we need to have a duplicate module for.<BR>&nbsp;<BR>/*Nancy E.. Wichmann, PMP*/<BR><BR>Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.<BR><BR><BR><BR>*From:* Dave Reid &lt;<A href="mailto:dave@davereid.net" target=_blank rel=nofollow ymailto="mailto:dave@davereid.net">dave@davereid.net</A>&gt;<BR>*To:* development@drupal..org<BR>*Sent:* Sun, January 24, 2010 8:16:00 PM<BR>*Subject:* Re: [development] A module to change node creation confirmation messages<BR><BR>Again, String Overrides module already does this and does it well. It<BR>doesn't need to go in Util or anywhere else.<BR><BR></DIV>On 1/24/10, James Benstead &lt;<A href="mailto:james.benstead@gmail.com" target=_blank rel=nofollow ymailto="mailto:james.benstead@gmail.com">james.benstead@gmail.com</A> &lt;mailto:<A href="mailto:james.benstead@gmail.com"
 target=_blank rel=nofollow ymailto="mailto:james.benstead@gmail.com">james.benstead@gmail.com</A>&gt;&gt; wrote:<BR>&gt; 2010/1/24 Domenic Santangelo &lt;<A href="mailto:domenics@gmail.com" target=_blank rel=nofollow ymailto="mailto:domenics@gmail.com">domenics@gmail.com</A> &lt;mailto:<A href="mailto:domenics@gmail." target=_blank rel=nofollow ymailto="mailto:domenics@gmail.">domenics@gmail.</A>.com&gt;&gt;
<DIV class=im><BR>&gt;<BR>&gt;&gt; You can still change on-the-fly strings. Just look at what's inside t()<BR>&gt;&gt; for<BR>&gt;&gt; a clue as to what to override.<BR>&gt;&gt;<BR>&gt;&gt; t('@type %title has been created.', $t_args)<BR>&gt;&gt;<BR>&gt;&gt; override "'@type %title has been created." to whatever.<BR>&gt;&gt;<BR>&gt;<BR>&gt; I never knew that - that's really useful! However, I still think writing an<BR>&gt; addition to the Utility module that will do this through the GUI would be<BR>&gt; useful for site builders who would never see this code. I'd best get<BR>&gt; cracking...<BR>&gt;<BR>&gt;<BR>&gt;&gt;<BR>&gt;&gt; -D<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; On Jan 24, 2010, at 3:13 PM, James Benstead wrote:<BR>&gt;&gt;<BR>&gt;&gt; I really don't think String Overrides does do this - at least, I've never<BR>&gt;&gt; been able to get it to change this particular string, I think because it's<BR>&gt;&gt; generated on the fly.<BR>&gt;&gt;<BR></DIV>
<DIV class=im>&gt;&gt; On 24 January 2010 21:03, Darth Clue &lt;<A href="mailto:darthclue@gmail.com" target=_blank rel=nofollow ymailto="mailto:darthclue@gmail.com">darthclue@gmail.com</A> &lt;mailto:<A href="mailto:darthclue@gmail.com" target=_blank rel=nofollow ymailto="mailto:darthclue@gmail.com">darthclue@gmail.com</A>&gt;&gt; wrote:<BR>&gt;&gt;<BR>&gt;&gt;&gt; Jim,<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; String Overrides ( http://drupal.org/project/stringoverrides ) will do<BR>&gt;&gt;&gt; that. I don't recall if it has token support.<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Jonathan<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; James Benstead wrote:<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; Currently the message that is shown to a user when a node is created -<BR>&gt;&gt;&gt;&gt; @type %title has been created. - seems to be hardcoded into node.module.<BR>&gt;&gt;&gt;&gt; I've just helped someone on IRC change this, but it's quite a<BR>&gt;&gt;&gt;&gt;
 long-winded<BR>&gt;&gt;&gt;&gt; process. Would a module be welcome? It would unset the message set on<BR>&gt;&gt;&gt;&gt; line<BR>&gt;&gt;&gt;&gt; 463 of node.pages.inc, and allow the user to set their own message on a<BR>&gt;&gt;&gt;&gt; per-nodetype basis. Integrated with Token and CCK.<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; --Jim<BR>&gt;&gt;&gt;&gt; --<BR>&gt;&gt;&gt;&gt; My IM and Skype details are at http://state68.com/contact.<BR>&gt;&gt;&gt;&gt; --<BR>&gt;&gt;&gt;&gt; At some point I'll probably tell you to buy The Borrible Trilogy.<BR>&gt;&gt;&gt;&gt; The simplest way to shut me up is to buy it now - search Amazon.<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;<BR><BR><BR>-- <BR>Dave Reid<BR></DIV><A href="mailto:dave@davereid.net" target=_blank rel=nofollow ymailto="mailto:dave@davereid.net">dave@davereid.net</A> &lt;mailto:<A href="mailto:dave@davereid.net" target=_blank rel=nofollow
 ymailto="mailto:dave@davereid.net">dave@davereid.net</A>&gt;<BR></BLOCKQUOTE><BR></BLOCKQUOTE></DIV><BR></DIV></DIV></DIV><!-- cg2.c204.mail.gq1.yahoo.com compressed/chunked Mon Jan 18 14:11:39 PST 2010 --></div></body></html>