Why is my hook_node_validate
implementation being called when I try to delete a node through the node editing form (by clicking the delete button at the bottom of form)? Validation fires and then my node doesn't get deleted which is not what I want.
Documentation says: Perform node validation before a node is created or updated.
Is deletion considered an "update" to the node in this case?
EDIT:
II can delete without any issues byproblems when clicking on delete link at admin/content
but not by clickingwhenclicking delete button on node edit form since validation fires and fails. What could be the reason for validation firing here?