You are here

function commerce_invoice_rules_action_info in Commerce Invoice 7

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

Implements hook_rules_action_info().

File

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

Code

function commerce_invoice_rules_action_info() {
  $actions = array();
  $actions['commerce_invoice_generate'] = array(
    'label' => t('Generate invoice'),
    'parameter' => array(
      'commerce_order' => array(
        'type' => 'commerce_order',
        'label' => t('Order to update'),
      ),
    ),
    'group' => t('Commerce Invoice'),
    'callbacks' => array(
      'execute' => 'commerce_invoice_rules_generate',
    ),
  );
  return $actions;
}