Drupal 7 skip node in hook after node save In my custom module I am creating a node using node_save. I have also implemented hook_node_update to catch a user updated node. But every time I call node_save, it also calls my hook. Is there a way I can tell that this update was called using my node_save.
In Drupal 6, I used to add something like $node->skip_it = TRUE in before node_save, and this was available in the update hook. But not any more. Any pointers.
You can check using below condition while using node_save


  If $node->nid is omitted (or $node->is_new is TRUE), a new node will
  be added.


So, in your hook_node_update check for above condition before executing your code.