You are here

function uc_recurring_rules_condition_info in UC Recurring Payments and Subscriptions 7.2

Implements hook_rules_condition_info().

File

./uc_recurring.rules.inc, line 133
Rules definitions.

Code

function uc_recurring_rules_condition_info() {
  return array(
    'uc_recurring_condition_order_contains_renewals' => array(
      'label' => t('Check if the order is a renewal'),
      'group' => t('Recurring'),
      'base' => 'uc_recurring_condition_order_contains_renewals',
      'parameter' => array(
        'order' => array(
          'type' => 'uc_order',
          'label' => t('Order'),
          'restriction' => 'selector',
        ),
      ),
    ),
    'uc_recurring_condition_order_has_expired' => array(
      'label' => t('Check if the recurring fee has expired'),
      'group' => t('Recurring'),
      'base' => 'uc_recurring_condition_order_has_expired',
      'parameter' => array(
        'recurring_fee' => array(
          'type' => 'uc_recurring_fee',
          'label' => t('Recurring Fee'),
          'restriction' => 'selector',
        ),
      ),
    ),
  );
}