Continue saving node under some condition Is there a drupal function can i use to check some condition, if it return true the node will be saved if not it should be return to the creation form.
Thanks.
You can use hook_node_validate() to check your condition.


  Perform node validation before a node is created or updated.
  
  This hook is invoked from node_validate(), after a user has has
  finished editing the node and is previewing or submitting it. It is
  invoked at the end of all the standard validation steps, and after the
  type-specific hook_validate() is invoked.
  
  To indicate a validation error, use form_set_error().