function hook_commerce_cart_order_empty in Commerce Core 7
Allows modules to perform additional processing when emptying a shopping cart order.
Modules that implement this hook do not need to save changes to the order, as the Cart module will save the order after invoking the hook.
Parameters
$order: The order being emptied.
See also
1 invocation of hook_commerce_cart_order_empty()
- commerce_cart_order_empty in modules/
cart/ commerce_cart.module - Deletes every product line item from a shopping cart order.
File
- modules/
cart/ commerce_cart.api.php, line 170 - Hooks provided by the Cart module.
Code
function hook_commerce_cart_order_empty($order) {
// No example.
}