Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Can anyone advise, please, how to create a rule action to make the edited node looks like as newly created one? (in other words, set is_new variable to TRUE)
Thanks
Comments
Comment #1
TR CreditAttribution: TR commentedYou can't. (And probably shouldn't, even if you could.)
'is_new' is not a Drupal concept - once a node has been created and saved, there is no way of telling if it is "new" other than looking at the creation timestamp. 'is_new' is a temporary flag set by the Entity API during the creation of the node, when the creation is not finished yet and the node is not fully saved. You can't go back to that state - once it's created, it's created and the temporary flag disappears.