You are here

function commerce_recurring_rules_condition_info in Commerce Recurring Framework 7

Same name and namespace in other branches
  1. 7.2 commerce_recurring.rules.inc \commerce_recurring_rules_condition_info()

Implements hook_rules_condition_info().

File

./commerce_recurring.rules.inc, line 10

Code

function commerce_recurring_rules_condition_info() {
  $conditions = array();
  $conditions['commerce_recurring_rules_order_is_master'] = array(
    'label' => t('Order is recurring set master'),
    'parameter' => array(
      'commerce_order' => array(
        'type' => 'commerce_order',
        'label' => t('Order'),
        'description' => t('The order in question.'),
      ),
    ),
    'group' => t('Commerce Order'),
  );
  $conditions['commerce_recurring_rules_order_contains_recurring'] = array(
    'label' => t('Order contains a recurring product'),
    'parameter' => array(
      'commerce_order' => array(
        'type' => 'commerce_order',
        'label' => t('Order'),
        'description' => t('The order in question.'),
      ),
    ),
    'group' => t('Commerce Order'),
  );
  return $conditions;
}