A module to change node creation confirmation messages
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.
Jim, http://drupal.org/project/customdestination That module is more about customizing the page destination after any form submit (though that destination page could have tailored text as well). (I've used Custom Desination module and it works well.) Also, maybe you can get what you want with a simple string override placed in settings.php? But in any case, it should definitely be more easily customizable. Shai On Sun, Jan 24, 2010 at 2:59 PM, James Benstead <james.benstead@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.
--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.
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.
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@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.
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@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.
2010/1/24 Domenic Santangelo <domenics@gmail.com>
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.
I never knew that - that's really useful! However, I still think writing an addition to the Utility module that will do this through the GUI would be useful for site builders who would never see this code. I'd best get cracking...
-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@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.
Again, String Overrides module already does this and does it well. It doesn't need to go in Util or anywhere else. On 1/24/10, James Benstead <james.benstead@gmail.com> wrote:
2010/1/24 Domenic Santangelo <domenics@gmail.com>
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.
I never knew that - that's really useful! However, I still think writing an addition to the Utility module that will do this through the GUI would be useful for site builders who would never see this code. I'd best get cracking...
-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@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.
-- Dave Reid dave@davereid.net
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. Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere.. -- Dr. Martin L. King, Jr. ________________________________ From: Dave Reid <dave@davereid.net> To: development@drupal.org Sent: Sun, January 24, 2010 8:16:00 PM Subject: Re: [development] A module to change node creation confirmation messages Again, String Overrides module already does this and does it well. It doesn't need to go in Util or anywhere else. On 1/24/10, James Benstead <james.benstead@gmail.com> wrote:
2010/1/24 Domenic Santangelo <domenics@gmail.com>
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.
I never knew that - that's really useful! However, I still think writing an addition to the Utility module that will do this through the GUI would be useful for site builders who would never see this code. I'd best get cracking...
-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@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.
-- Dave Reid dave@davereid.net
I think what may be missing from string overrides is the knowledge of what string to use to make the override work. 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. Jonathan nan wich wrote:
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.
/*Nancy E. Wichmann, PMP*/
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
*From:* Dave Reid <dave@davereid.net> *To:* development@drupal..org *Sent:* Sun, January 24, 2010 8:16:00 PM *Subject:* Re: [development] A module to change node creation confirmation messages
Again, String Overrides module already does this and does it well. It doesn't need to go in Util or anywhere else.
On 1/24/10, James Benstead <james.benstead@gmail.com <mailto:james.benstead@gmail.com>> wrote:
2010/1/24 Domenic Santangelo <domenics@gmail.com <mailto:domenics@gmail..com>>
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.
I never knew that - that's really useful! However, I still think writing an addition to the Utility module that will do this through the GUI would be useful for site builders who would never see this code. I'd best get cracking...
-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@gmail.com <mailto:darthclue@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.
-- Dave Reid dave@davereid.net <mailto:dave@davereid.net>
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. 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. 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. My vote is to encourage James to write it. Shai On Sun, Jan 24, 2010 at 9:16 PM, Darth Clue <darthclue@gmail.com> wrote:
I think what may be missing from string overrides is the knowledge of what string to use to make the override work. 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.
Jonathan
nan wich wrote:
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.
/*Nancy E. Wichmann, PMP*/
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
*From:* Dave Reid <dave@davereid.net> *To:* development@drupal..org *Sent:* Sun, January 24, 2010 8:16:00 PM *Subject:* Re: [development] A module to change node creation confirmation messages
Again, String Overrides module already does this and does it well. It doesn't need to go in Util or anywhere else.
On 1/24/10, James Benstead <james.benstead@gmail.com <mailto: james.benstead@gmail.com>> wrote:
2010/1/24 Domenic Santangelo <domenics@gmail.com <mailto: domenics@gmail..com>>
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.
I never knew that - that's really useful! However, I still think writing
addition to the Utility module that will do this through the GUI would be useful for site builders who would never see this code. I'd best get cracking...
-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@gmail.com <mailto: darthclue@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
an -
@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.
-- Dave Reid dave@davereid.net <mailto:dave@davereid.net>
Well, if he writes it and submits it to Util, I will test it and commit when I have a chance. Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr. ________________________________ From: Shai Gluskin <shai@content2zero.com> To: development@drupal.org Sent: Sun, January 24, 2010 9:30:03 PM Subject: Re: [development] A module to change node creation confirmation messages 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. 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. 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. My vote is to encourage James to write it. Shai On Sun, Jan 24, 2010 at 9:16 PM, Darth Clue <darthclue@gmail.com> wrote: I think what may be missing from string overrides is the knowledge of what string to use to make the override work. 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.
Jonathan
nan wich wrote:
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.
/*Nancy E. Wichmann, PMP*/
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
*From:* Dave Reid <dave@davereid.net> *To:* development@drupal..org *Sent:* Sun, January 24, 2010 8:16:00 PM *Subject:* Re: [development] A module to change node creation confirmation messages
Again, String Overrides module already does this and does it well. It doesn't need to go in Util or anywhere else.
On 1/24/10, James Benstead <james.benstead@gmail.com <mailto:james.benstead@gmail.com>> wrote:
2010/1/24 Domenic Santangelo <domenics@gmail.com <mailto:domenics@gmail..com>>
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.
I never knew that - that's really useful! However, I still think writing an addition to the Utility module that will do this through the GUI would be useful for site builders who would never see this code. I'd best get cracking...
-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@gmail.com <mailto:darthclue@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.
-- Dave Reid dave@davereid.net <mailto:dave@davereid.net>
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 <james.benstead@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.
--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
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 <brian@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?
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 <james.benstead@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.
--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
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
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
I'm working on this now. My approach is to override theme_status_messages(), so that I can change the status messages right before they're output. I know how to do this in a theme, but how do I do it in a module? 2010/1/25 Adam Gregory <arcaneadam@gmail.com>
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
You could implement hook_theme_registry_alter() and modify the status_message entry to process through your function. [status_messages] => Array ( [arguments] => Array ( [display] => ) [type] => module [theme path] => modules/system [function] => theme_status_messages [theme paths] => Array ( [0] => modules/system ) [preprocess functions] => Array ( [0] => template_preprocess ) ) You could alter the "theme paths" and "function". Devel Themer does something similar to run every entry in the theme_registry through it's own function. ----- Adam A. Gregory Drupal Developer & Consultant Web: AdamAGregory.com Twitter: twitter.com/adamgregory Phone: 910.808.1717 Cell: 706.761.7375 On Thu, Jan 28, 2010 at 8:22 AM, James Benstead <james.benstead@gmail.com>wrote:
I'm working on this now. My approach is to override theme_status_messages(), so that I can change the status messages right before they're output. I know how to do this in a theme, but how do I do it in a module?
2010/1/25 Adam Gregory <arcaneadam@gmail.com>
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
You could implement hook_theme_registry_alter() and modify the status_message entry to process through your function.
Thanks, that's exactly what I did! The new module is up at http://drupal.org/project/csm - it might not be packaged if you hit it soon, but a package is scheduled. @Nancy: I thought about submitting it to be part of utility, and I'm still happy for that to happen if you are, but the module as it stands is pretty hacky so I thought I'd better do a quick release so people can see it and I can get it fine-tuned. Thanks to everyone else who commented during the discussion - if anyone wants to try and kill the module as it now stands, go for it - I'll be keeping a keen eye on the issue queue. --Jim
James Benstead wrote:
@type %title has been created. - seems to be hardcoded into node.module. Would a module be welcome? I can't imagine that there are a lot of people for whom that message is in any way objectionable..
If you want to write it up, we can include it with the Util module. I have a few other little things like this that might make it all fit together. Nancy E. Wichmann, PMP Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
On 24 January 2010 22:53, nan wich <nan_wich@bellsouth.net> wrote:
James Benstead wrote:
@type %title has been created. - seems to be hardcoded into node.module. Would a module be welcome? I can't imagine that there are a lot of people for whom that message is in any way objectionable.
It's not objectionable per se, but it's a really easy fix and I have certainly had need for it in the past, as have a number of other users.
If you want to write it up, we can include it with the Util module. I have a few other little things like this that might make it all fit together.
Great, thanks. I'll try and get something done by the end of this week.
*Nancy E. Wichmann, PMP*
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
On 01/25/2010 01:29 AM, 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.
You can check out the Rules module. It has token support as well. You create a rule on saving new content, and then assign action 'System->Show configurable message'. This should work. I use it for the same. It works very well. -- Nilesh Govindarajan Site & Server Adminstrator www.itech7.com
participants (11)
-
Adam Gregory -
Brian Vuyk -
Darth Clue -
Dave Reid -
Domenic Santangelo -
James Benstead -
Khalid Baheyeldin -
Michael Favia -
nan wich -
Nilesh Govindarajan -
Shai Gluskin