farmOS/modules/farm/farm_livestock/farm_livestock_eggs/farm_livestock_eggs.feature...

39 lines
825 B
PHP

<?php
/**
* @file
* farm_livestock_eggs.features.inc
*/
/**
* Implements hook_ctools_plugin_api().
*/
function farm_livestock_eggs_ctools_plugin_api($module = NULL, $api = NULL) {
if ($module == "field_group" && $api == "field_group") {
return array("version" => "1");
}
}
/**
* Implements hook_views_api().
*/
function farm_livestock_eggs_views_api($module = NULL, $api = NULL) {
return array("api" => "3.0");
}
/**
* Implements hook_default_log_type().
*/
function farm_livestock_eggs_default_log_type() {
$items = array();
$items['farm_eggs'] = entity_import('log_type', '{
"type" : "farm_eggs",
"label" : "Eggs",
"weight" : 0,
"name_pattern" : "Collected [log:field-farm-egg-qty] egg(s)",
"name_edit" : "0",
"done" : "1",
"rdf_mapping" : []
}');
return $items;
}