You are here

function uc_payment_rules_condition_info in Ubercart 7.3

Implements hook_rules_condition_info().

File

payment/uc_payment/uc_payment.rules.inc, line 33
Rules definitions.

Code

function uc_payment_rules_condition_info() {
  $conditions['uc_payment_condition_order_balance'] = array(
    'label' => t('Check the order balance'),
    'group' => t('Payment'),
    'base' => 'uc_payment_condition_order_balance',
    'parameter' => array(
      'order' => array(
        'type' => 'uc_order',
        'label' => t('Order'),
        'restriction' => 'selector',
      ),
      'balance_comparison' => array(
        'type' => 'text',
        'label' => t('Operator'),
        'options list' => 'uc_payment_condition_balance_options',
        'restriction' => 'input',
      ),
      'include_authorizations' => array(
        'type' => 'boolean',
        'label' => t('Include authorizations?'),
        'description' => t('Should "authorization only" credit card transactions be used in calculating the order balance?'),
        'restriction' => 'input',
        'optional' => TRUE,
        'default value' => FALSE,
      ),
    ),
  );
  return $conditions;
}