You are here

function commerce_gc_rules_condition_info in Commerce GC 7

File

./commerce_gc.rules.inc, line 38

Code

function commerce_gc_rules_condition_info() {
  $conditions['commerce_gc_giftcard_minimum_balance'] = array(
    'label' => t('Determine whether a giftcard balance exceeds a minimum amount.'),
    'group' => t('Commerce Giftcard'),
    'parameter' => array(
      'commerce_coupon' => array(
        'type' => 'commerce_coupon',
        'label' => t('Giftcard coupon'),
        'wrapped' => TRUE,
      ),
      'amount' => array(
        'type' => 'integer',
        'label' => t('Giftcard must be greater than this amount.'),
        'optional' => TRUE,
      ),
    ),
  );
  return $conditions;
}