Closed (fixed)
Project:
Add Another
Version:
7.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Mar 2011 at 02:08 UTC
Updated:
2 Apr 2011 at 02:41 UTC
This hook assumes it is being called from a node/add form which would have $node->op. However, if the node is being inserted programmatically, then there is not a value for $node->op. Need a way to determine the context the hook is being called from.
It may be that a simple if (!isset($node->op)) return; will suffice.
Comments
Comment #1
robin monks commentedChange applied to 7.x-2.x branch; thanks!
/Robin