function commerce_file_license_load_by_property in Commerce File 7
Return all licenses for specified files
Parameters
$fids: An array of file fids
$account: A user object of the license owner
- if empty all licenses for $fids is returned
Return value
An array of license entities
6 calls to commerce_file_license_load_by_property()
- commerce_file_file_download in ./
commerce_file.module - Implements hook_file_download().
- commerce_file_form_commerce_file_license_issue_by_host_form_alter in includes/
commerce_file_license.forms.inc - Implements hook_form_FORM_ID_alter().
- commerce_file_license_issue_by_commerce_line_item in includes/
commerce_file.entities.inc - Issue licenses for files in a line item
- commerce_file_license_line_item_update_state in includes/
commerce_file.entities.inc - Update the state of licenses for files on a line item
- commerce_file_license_line_item_update_status in includes/
commerce_file.entities.inc - Update the state of licenses for files on a line item
File
- includes/
commerce_file.entities.inc, line 288 - Handles file licenses and file license logs
Code
function commerce_file_license_load_by_property($fids = array(), $line_item_ids = array(), $account = NULL) {
$ids = _commerce_file_license_field_query($fids, $line_item_ids, $account);
return !empty($ids) ? commerce_file_license_load_multiple($ids) : array();
}