farmOS/modules/farm/farm_livestock/farm_livestock.features.inc

56 lines
1.2 KiB
PHP
Raw Normal View History

<?php
/**
* @file
* farm_livestock.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
2015-06-11 21:13:36 +02:00
function farm_livestock_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "field_group" && $api == "field_group") {
return array("version" => "1");
}
if ($module == "strongarm" && $api == "strongarm") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
2015-06-11 21:13:36 +02:00
function farm_livestock_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_default_farm_asset_type().
*/
function farm_livestock_default_farm_asset_type() {
$items = array();
$items['animal'] = entity_import('farm_asset_type', '{
"type" : "animal",
"label" : "Animal",
"weight" : 0,
"rdf_mapping" : []
}');
return $items;
}
2016-06-08 19:17:48 +02:00
/**
* Implements hook_default_log_type().
*/
function farm_livestock_default_log_type() {
$items = array();
$items['farm_medical'] = entity_import('log_type', '{
"type" : "farm_medical",
"label" : "Medical",
"weight" : 0,
2017-05-20 16:41:41 +02:00
"name_pattern" : "Medical: [log:field-farm-asset] [log:timestamp:short]",
2016-06-08 19:17:48 +02:00
"name_edit" : "1",
"done" : "1",
"rdf_mapping" : []
}');
return $items;
}