Drupal coder: hook_form: is this node new ?
hook_form
is used both for adding new nodes and editing existing ones, and no parameter is passed to describe the current operation.
Why is it not needed ? Because a simple test can show whether the node is being added or edited: