2014-11-26 21:56:54 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @file
|
2015-04-22 05:03:15 +02:00
|
|
|
* farm_soil_test.features.inc
|
2014-11-26 21:56:54 +01:00
|
|
|
*/
|
|
|
|
|
2017-05-20 00:10:19 +02:00
|
|
|
/**
|
|
|
|
* Implements hook_ctools_plugin_api().
|
|
|
|
*/
|
|
|
|
function farm_soil_test_ctools_plugin_api($module = NULL, $api = NULL) {
|
|
|
|
if ($module == "field_group" && $api == "field_group") {
|
|
|
|
return array("version" => "1");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-11-26 21:56:54 +01:00
|
|
|
/**
|
|
|
|
* Implements hook_views_api().
|
|
|
|
*/
|
2015-07-23 02:57:22 +02:00
|
|
|
function farm_soil_test_views_api($module = NULL, $api = NULL) {
|
|
|
|
return array("api" => "3.0");
|
2014-11-26 21:56:54 +01:00
|
|
|
}
|
2014-12-31 01:17:50 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements hook_default_log_type().
|
|
|
|
*/
|
|
|
|
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,
|
2019-04-07 00:04:03 +02:00
|
|
|
"name_pattern" : "Soil test [log:timestamp:short] [log:field-farm-area]",
|
2014-12-31 01:17:50 +01:00
|
|
|
"name_edit" : "1",
|
2015-02-18 22:59:58 +01:00
|
|
|
"done" : "1",
|
2014-12-31 01:17:50 +01:00
|
|
|
"rdf_mapping" : []
|
|
|
|
}');
|
|
|
|
return $items;
|
|
|
|
}
|