Active
Project:
Node Go To
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2008 at 18:12 UTC
Updated:
28 Apr 2008 at 13:13 UTC
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
Comment #1
introfini commentedHi 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