You are here

asset_document.module in Asset 7

Code for the Sample Asset Document.

File

modules/asset_document/asset_document.module
View source
<?php

/**
 * @file
 * Code for the Sample Asset Document.
 */

/**
 * Implements hook_default_asset_type().
 */
function asset_document_default_asset_type() {
  $items = array();
  $items['document'] = entity_import('asset_type', '{
    "type" : "document",
    "name" : "Document",
    "icon" : "AddDocument.png",
    "description" : "",
    "help" : "",
    "weight" : "1",
    "locked" : "0",
    "rdf_mapping" : []
  }');
  return $items;
}

Functions

Namesort descending Description
asset_document_default_asset_type Implements hook_default_asset_type().