You are here

function commerce_cart_commerce_order_delete in Commerce Core 7

Same name and namespace in other branches
  1. 8.2 modules/cart/commerce_cart.module \commerce_cart_commerce_order_delete()

Implements hook_commerce_order_delete().

File

modules/cart/commerce_cart.module, line 553
Implements the shopping cart system and add to cart features.

Code

function commerce_cart_commerce_order_delete($order) {
  commerce_cart_order_session_delete($order->order_id);
  commerce_cart_order_session_delete($order->order_id, TRUE);
}