function commerce_file_license_save in Commerce File 7
Save a commerce_file_license
Parameters
$entity: An entity object - OR - an array of values
File
- includes/
commerce_file.entities.inc, line 88 - Handles file licenses and file license logs
Code
function commerce_file_license_save($entity) {
if (is_array($entity)) {
return entity_get_controller(COMMERCE_FILE_LICENSE_ENTITY_NAME)
->create($entity)
->save();
}
return entity_get_controller(COMMERCE_FILE_LICENSE_ENTITY_NAME)
->save($entity);
}