You are here

function commerce_invoice_rules_condition_info in Commerce Invoice 7

Same name and namespace in other branches
  1. 7.2 commerce_invoice.rules.inc \commerce_invoice_rules_condition_info()

Implements hook_rules_condition_info()

File

./commerce_invoice.rules.inc, line 14
Rules integration for invoices.

Code

function commerce_invoice_rules_condition_info() {
  $items = array();
  $items['commerce_invoice_exists'] = array(
    'label' => t('Invoice exists for Order'),
    'parameter' => array(
      'commerce_order' => array(
        'type' => 'commerce_order',
        'label' => t('Order to check'),
      ),
    ),
    'group' => t('Commerce Invoice'),
    'callbacks' => array(
      'execute' => 'commerce_invoice_rules_condition_exists',
    ),
  );
  return $items;
}