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

pwolanin’s picture

Well, 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().

pwolanin’s picture

Status: Active » Closed (fixed)