farm_soil_test.features.inc in farmOS 7
File
modules/farm/farm_soil/farm_soil_test/farm_soil_test.features.inc
View source
<?php
function farm_soil_test_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "field_group" && $api == "field_group") {
return array(
"version" => "1",
);
}
}
function farm_soil_test_views_api($module = NULL, $api = NULL) {
return array(
"api" => "3.0",
);
}
function farm_soil_test_default_log_type() {
$items = array();
$items['farm_soil_test'] = entity_import('log_type', '{
"type" : "farm_soil_test",
"label" : "Soil Test",
"weight" : 0,
"name_pattern" : "Soil test [log:timestamp:short] [log:field-farm-area]",
"name_edit" : "1",
"done" : "1",
"rdf_mapping" : []
}');
return $items;
}