Hi

I have been working with uc_node_access and I need to know the Order ID when the hook_ucna_handler() is called, so that I can log the specific Order for which the Node access was granted.

I am writing the hook to work with Premium Module, http://drupal.org/project/premium

I was looking into the module uc_node_access_grant_access() has the $order variable, but this information is stripped and only the user ID is passed to the uc_node_access_grant_user_access() and the rest of the order variables are not passed through. It is possible to have an extra variable containing order ID also be passed through to the hook?

Else is there any way to get order information from within the hook so using the nid and uid?

Thanks

Regards
Santhosh Raju