Skip navigation
Help

hook_uc_order_product_presave

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

Acts on an order product being inserted or updated.

This hook is invoked before the order product is saved to the database.

Parameters

object $order_product: The order product that is being inserted or updated.

See also

hook_entity_presave()

Related topics

File

ubercart/uc_order/uc_order.api.php, line 454
Hooks provided by the Order module.

Code

function hook_uc_order_product_presave(object $order_product) {
  $order_product->name = 'foo';
}