function hook_uc_order_product_update in Ubercart 7.3
Same name and namespace in other branches
- 8.4 uc_order/uc_order.api.php \hook_uc_order_product_update()
Responds to an order product being updated.
This hook is invoked after the order product has been updated in the database.
Parameters
object $order_product: The order product that is being updated.
See also
File
- uc_order/
uc_order.api.php, line 467 - Hooks provided by the Order module.
Code
function hook_uc_order_product_update(object $order_product) {
db_update('mytable')
->fields(array(
'extra' => print_r($order_product, TRUE),
))
->condition('opid', entity_id('uc_order_product', $order_product))
->execute();
}