function commerce_file_license_build_content in Commerce File 7
Generate an array for rendering the given commerce_file_license.
Parameters
$entity_type: The type of the entity.
$entity: An entity object.
$view_mode: A view mode as used by this entity type, e.g. 'full', 'teaser'...
$langcode: (optional) A language code to use for rendering. Defaults to the global content language of the current request.
Return value
The renderable array.
File
- includes/
commerce_file.entities.inc, line 331 - Handles file licenses and file license logs
Code
function commerce_file_license_build_content($entity, $view_mode = 'full', $langcode = NULL) {
return entity_build_content(COMMERCE_FILE_LICENSE_ENTITY_NAME, $entity, $view_mode, $langcode);
}