2014-11-12 20:27:59 +01:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @file
|
2015-04-22 04:58:42 +02:00
|
|
|
* farm_livestock.features.inc
|
2014-11-12 20:27:59 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements hook_ctools_plugin_api().
|
|
|
|
*/
|
|
|
|
function farm_livestock_ctools_plugin_api() {
|
|
|
|
list($module, $api) = func_get_args();
|
|
|
|
if ($module == "strongarm" && $api == "strongarm") {
|
|
|
|
return array("version" => "1");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-12-01 20:21:49 +01:00
|
|
|
/**
|
|
|
|
* Implements hook_views_api().
|
|
|
|
*/
|
|
|
|
function farm_livestock_views_api() {
|
|
|
|
return array("version" => "3.0");
|
|
|
|
}
|
|
|
|
|
2014-11-12 20:27:59 +01:00
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
}
|