You are here

function commerce_license_activate_order_licenses in Commerce License 7

Activates all licenses of the provided order.

Parameters

$order: The order entity.

2 string references to 'commerce_license_activate_order_licenses'
commerce_license_default_rules_configuration in ./commerce_license.rules_defaults.inc
Implements hook_default_rules_configuration().
commerce_license_rules_action_info in ./commerce_license.rules.inc
Implements hook_rules_action_info().

File

./commerce_license.module, line 520
Provides a framework for selling access to local or remote resources.

Code

function commerce_license_activate_order_licenses($order) {
  $licenses = commerce_license_get_order_licenses($order);
  foreach ($licenses as $license) {
    $license
      ->activate();
  }
}