You are here

function hook_commerce_cart_order_is_cart_alter in Commerce Core 7

Alter the cart status of an order.

When determining if an order should be considered a shopping cart order, the Cart module provides a simple order status comparison but allows other modules to make the decision based on some other criteria.

Parameters

$is_cart: Boolean indicating whether or not the order should be considered a cart order; initialized based on the order status.

$order: The order whose cart status is being determined.

1 invocation of hook_commerce_cart_order_is_cart_alter()
commerce_cart_order_is_cart in modules/cart/commerce_cart.module
Determines whether or not the given order is a shopping cart order.

File

modules/cart/commerce_cart.api.php, line 74
Hooks provided by the Cart module.

Code

function hook_commerce_cart_order_is_cart_alter(&$is_cart, $order) {

  // No example.
}