Custom Rules Action (completing order) and Order ID
I have created a custom rules action via module. My only problem is making the Order ID available.
My function prototype is as follows:
function create_this_node($node, $context = array())
If I print_r($context), I can see the Order ID in a few places. The only problem is, all the data is protected so I cannot directly access it.
e.g. [id:protected] => 52
I have tried adding conditions to my rules via the GUI but still unable to access the order id.
So what do I need to do in order to get access to the Order ID?