function _commerce_file_license_set_request_license in Commerce File 7
Set a license as currently being downloaded
2 calls to _commerce_file_license_set_request_license()
- commerce_file_file_download in ./
commerce_file.module - Implements hook_file_download().
- _commerce_file_license_get_request_licenses in includes/
commerce_file.entities.inc - Retrieve all licenses currently being downloaded
File
- includes/
commerce_file.entities.inc, line 822 - Handles file licenses and file license logs
Code
function _commerce_file_license_set_request_license($license) {
$requests =& drupal_static(__FUNCTION__);
if (!isset($requests)) {
$requests = array();
}
if (isset($license)) {
$requests[$license->license_id] = clone $license;
}
return $requests;
}