Closed (fixed)
Project:
Node clone
Version:
6.x-1.0-beta2
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 May 2008 at 16:07 UTC
Updated:
23 May 2008 at 02:18 UTC
If I am right here, the hook is called on populate and save of the node if the prepopulate version is active. That is a very good thing for me, as I need the nid to add other relations afterwards.
How can I distinguish whether this is the actual save or the prepopulation?
Comments
Comment #1
pwolanin commentedWell, the API might need further tweaking, but the 3rd parameter of the _alter hook should tell you which method is being used.
If you generally need to do something with nodes after they are saved, then I assume you'd used hook_nodeapi().
Comment #2
pwolanin commented