farm_soil_compost.features.inc in farmOS 7
File
modules/farm/farm_soil/farm_soil_compost/farm_soil_compost.features.inc
View source
<?php
function farm_soil_compost_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "field_group" && $api == "field_group") {
return array(
"version" => "1",
);
}
}
function farm_soil_compost_views_api($module = NULL, $api = NULL) {
return array(
"api" => "3.0",
);
}
function farm_soil_compost_default_farm_asset_type() {
$items = array();
$items['compost'] = entity_import('farm_asset_type', '{
"type" : "compost",
"label" : "Compost",
"weight" : 0,
"rdf_mapping" : []
}');
return $items;
}