Stop system message on create node
Posted by Anonymous on August 15, 2011 at 8:28am
I've put together a rule that sends an email on a create node for a specific content type and this is working correctly.
However, I would like to prevent the standard message for a node create being displayed and set one of my own.
I've tried adding an action to "Execute custom PHP code" with the following in it:
<?php
drupal_get_messages('');
drupal_set_message('My message in here','');
?>The result is that my message is displayed as well as the standard create node message in the form " has been created."
Read more