function commerce_file_license_wrapper in Commerce File 7
Return wrapper object for a given license
1 call to commerce_file_license_wrapper()
- commerce_file_license_form in includes/
commerce_file_license.forms.inc - Form callback: create or edit a license.
File
- includes/
commerce_file.entities.inc, line 156 - Handles file licenses and file license logs
Code
function commerce_file_license_wrapper($entity) {
return entity_metadata_wrapper(COMMERCE_FILE_LICENSE_ENTITY_NAME, $entity);
}