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'
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();
}
}