Skip navigation
Help

hook_uc_order_product_update

7 uc_order.api.php hook_uc_order_product_update(object $order_product)

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

hook_entity_update()

Related topics

File

ubercart/uc_order/uc_order.api.php, line 468
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();
}