Rules: after saving new content + after updating existing content both triggered on node create I have two rules -


Triggers - after new content is saved
Triggers - after updating existing content 


Problem 


When I create a new node both rules are getting triggered together. 


Probable Cause


I have an image field in my content type. Something that I found - "...Drupal re-saves the node just because it has a file attached to it...". Refer - http://drupal.org/node/1281960#comment-5065932


However, there must be some solution to this. Please any suggestions, workarounds, solutions...anybody?

Thanks.
You could add a condition in both rules to check whether the $node-&gt;created and $node-&gt;changed timestamps are same.

For a newly created node $node-&gt;created and $node-&gt;changed time will be same, while for an updated node both will be having different timestamps.

You probably need to add an Execute custom PHP code in rule condition to do this.