function hook_uc_order_product_presave in Ubercart 7.3
Same name and namespace in other branches
- 8.4 uc_order/uc_order.api.php \hook_uc_order_product_presave()
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
File
- uc_order/
uc_order.api.php, line 453 - Hooks provided by the Order module.
Code
function hook_uc_order_product_presave(object $order_product) {
$order_product->name = 'foo';
}