You are here

function commerce_file_license_load in Commerce File 7

Load a single commerce_file_license

Parameters

$id: A single entity ID.

Return value

An entity object.

9 calls to commerce_file_license_load()
CommerceFileLicenseLogEntity::license in includes/commerce_file_license_log.entity.inc
License
commerce_file_handler_field_license::render_link in views/handlers/commerce_file_handler_field_license.inc
Render whatever the data is as a link to the license.
commerce_file_handler_field_license_expiration::_get_entity in views/handlers/commerce_file_handler_field_license_expiration.inc
commerce_file_handler_field_license_link::render in views/handlers/commerce_file_handler_field_license_link.inc
Render the field.
commerce_file_handler_field_license_link_clone::render in views/handlers/commerce_file_handler_field_license_link_clone.inc
Render the field.

... See full list

1 string reference to 'commerce_file_license_load'
commerce_file_entity_info in ./commerce_file.module
Implements hook_entity_info().

File

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

Code

function commerce_file_license_load($id = NULL) {
  if (empty($id)) {
    return FALSE;
  }
  $entity = commerce_file_license_load_multiple(array(
    $id,
  ));
  return $entity ? reset($entity) : FALSE;
}