3

Before I would use Custom Submit Messages to customize each message but, seems to not work as we like with Drupal 7.

Is there any other simple way that will allow to alter the message text after creating content?

8

You can do it through Rules

Create a new rule configuration and set the event to Node | After saving new content.

enter image description here

Add a condition, Node | Content is of type and set CONTENT TYPES to Article, as shown in the following screenshot:

enter image description here

Add an Action and select System | Show a message on the site

enter image description here

By using the Action, After saving new content, we're asking Rules to react on content creation. This means that the rule will fire every time a new content has been created in the system. By using Conditions, we can tell Rules to only fire the action if the created content type is Article (or any other content type). In the MESSAGE field, we've used REPLACEMENT PATTERNS to insert chunks of data from the objects available in our current rule configuration.

  • this is perfect! is it anyway to stop the system msgs when using the custom msg? its 2 msgs now. – delboud Apr 14 '13 at 13:47
  • 1
    I used the disable messages module to stop the other messages, thanks again! – delboud Apr 14 '13 at 14:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.