Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'm having an issue with this hook.
I have the following code in a module:
function my_module_uc_checkout_complete($order, $account) {
drupal_set_message('TEST');
kpr($order);
}
When I complete checkout I get the test message but the contents of the $order object (Devel is installed) is not displayed.
Any idea why this doesn't work, or how I can access the contents of the $order object from this function?
Comments
Comment #1
Problue SolutionsI have been able to do this using:
No idea why the kpr function doesn't work but hope this helps anyone else trying to do the same thing.
Comment #2
longwave