You are here

function uc_cart_condition_info in Ubercart 5

File

uc_cart/uc_cart_workflow.inc, line 15
This file contains the Workflow-ng hooks and functions necessary to make the cart related entity, conditions, events, and actions work.

Code

function uc_cart_condition_info() {
  $order_arg = array(
    '#entity' => 'order',
    '#label' => t('Order'),
  );
  $conditions['uc_cart_condition_product_class'] = array(
    '#label' => t('Order has a product of a particular class'),
    '#arguments' => array(
      'order' => $order_arg,
    ),
    '#module' => t('Order: Product'),
  );
  return $conditions;
}