Skip to main content
1 of 4
nmc
  • 2.1k
  • 1
  • 21
  • 35

hook_node_validate called on delete?

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?

nmc
  • 2.1k
  • 1
  • 21
  • 35