You are here

function commerce_file_license_property_setter in Commerce File 7

Callback for setting properties.

See also

commerce_file_entity_property_info()

1 string reference to 'commerce_file_license_property_setter'
commerce_file_entity_property_info_alter in ./commerce_file.info.inc
Implements hook_entity_property_info_alter()

File

includes/commerce_file.entities.inc, line 352
Handles file licenses and file license logs

Code

function commerce_file_license_property_setter($entity, $name, $value) {
  try {
    $entity->{$name} = $value;
  } catch (Exception $e) {

    // pass
  }
}