You are here

function uc_cart_ca_condition in Ubercart 6.2

Implements hook_ca_condition().

File

uc_cart/uc_cart.ca.inc, line 16
This file contains the Conditional Actions hooks and functions necessary to make the cart related entity, conditions, events, and actions work.

Code

function uc_cart_ca_condition() {
  $conditions['uc_cart_condition_product_class'] = array(
    '#title' => t('Order has a product of a particular class'),
    '#category' => t('Order: Product'),
    '#callback' => 'uc_cart_condition_product_class',
    '#arguments' => array(
      'order' => array(
        '#entity' => 'uc_order',
        '#title' => t('Order'),
      ),
    ),
  );
  return $conditions;
}