You are here

function commerce_license_rules_action_info in Commerce License 7

Implements hook_rules_action_info().

File

./commerce_license.rules.inc, line 40
Commerce License rules integration.

Code

function commerce_license_rules_action_info() {
  $actions = array();
  $actions['commerce_license_activate_order_licenses'] = array(
    'label' => t('Activates all licenses of the provided order'),
    'parameter' => array(
      'commerce_order' => array(
        'type' => 'commerce_order',
        'label' => t('Order in checkout'),
      ),
    ),
    'group' => t('Commerce License'),
    'callbacks' => array(
      'execute' => 'commerce_license_activate_order_licenses',
    ),
  );
  return $actions;
}