Situation 1: ON event Content is going to be saved
Referenced node field is populated and there is no status message , only about created content.
Situation 2: ON event After saving new content
Referenced node field is populated and there IS status message " 'Content type' 'node title' has been created. "
This node is a referenced node and was created long time ago.
I would like to only populate a field , without this unnecessary status message.
Also I think it should be UPDATED - not CREATED.
Both situation are when I create new node by URL reference widget.
Any ideas how to hide this status message and only populate the field ?
It is OK in situation 1 but I need also do this for situation 2 because I also need the path of created node and some more..
Thanks for any ideas.
Comments
Comment #1
bkosborneAnyone know this? I've been trying to figure out how to clear the status messages after a new post and write my own as well.
Comment #2
jason.fisher commentedI do not know the best/correct solution, but I am doing this inside of a hook_init() -- beware that it will hide all status messages if the first one is a 'created' or 'updated' message.
Comment #3
mitchell commentedUpdated component.
Comment #4
tr commentedIf you still have this problem in the currently supported version of Rules (D7 or D8) then feel free to reopen this issue with updated details and instructions for how to reproduce the problem.