Rather than form submit callbacks, it would be cleaner to implement hook_nodeapi(), conditionally setting $_REQUEST['destination'] in the appropriate $op.

Doing so would avoid the brittle query to sequences to determine the node ID (brittle because it will fail if there has been an insert in the interim).

Comments

introfini’s picture

Hi nedjo,

It used to be with hook_nodeapi() and drupal_goto() but it caused problems with other modules that also made use of the nodeapi hook.

I'm very busy, but I will try to take a look at your suggestion.

Thanks.

introfini