function commerce_license_enqueue_sync in Commerce License 7
Enqueues a license for synchronization.
Parameters
$license: The license entity.
1 call to commerce_license_enqueue_sync()
- CommerceLicenseRemoteBase::save in includes/
plugins/ license_type/ base.inc - Overrides Entity::save().
File
- ./
commerce_license.module, line 563 - Provides a framework for selling access to local or remote resources.
Code
function commerce_license_enqueue_sync($license) {
$queue = DrupalQueue::get('commerce_license_synchronization');
$task = array(
'uid' => $license->uid,
'license_id' => $license->license_id,
'title' => t('License #@license_id', array(
'@license_id' => $license->license_id,
)),
);
$queue
->createItem($task);
}