You are here

function farm_livestock_default_farm_asset_type in farmOS 7

Implements hook_default_farm_asset_type().

File

modules/farm/farm_livestock/farm_livestock.features.inc, line 29
farm_livestock.features.inc

Code

function farm_livestock_default_farm_asset_type() {
  $items = array();
  $items['animal'] = entity_import('farm_asset_type', '{
    "type" : "animal",
    "label" : "Animal",
    "weight" : 0,
    "inventory" : { "enabled" : "1", "individual" : "1" },
    "rdf_mapping" : []
  }');
  return $items;
}