You are here

function commerce_cart_rules_condition_info in Commerce Core 7

Implements hook_rules_condition_info().

File

modules/cart/commerce_cart.rules.inc, line 84
Rules integration for shopping carts.

Code

function commerce_cart_rules_condition_info() {
  $conditions = array();
  $conditions['commerce_order_is_cart'] = array(
    'label' => t('Order is a shopping cart'),
    'parameter' => array(
      'commerce_order' => array(
        'type' => 'commerce_order',
        'label' => t('Order'),
      ),
    ),
    'group' => t('Commerce Cart'),
    'callbacks' => array(
      'execute' => 'commerce_cart_rules_order_is_cart',
    ),
  );
  return $conditions;
}