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