I've unshifted my own submit handler to the #submit handler of a node form. I already have a validation handler, so I can't execute my cancelling submit handler there.
Maybe this makes more sense:
- my validation
- all other validation
- my submit handler, which potentially kills the submit process to
form_state[rebuild] => TRUEand try again
- all other submit handlers
Is that possible? I can cancel submission if I put my submit logic in a validation, but that's too soon. It should only run when all validation passes.