function farm_livestock_default_log_type in farmOS 7
Implements hook_default_log_type().
File
- modules/
farm/ farm_livestock/ farm_livestock.features.inc, line 44 - farm_livestock.features.inc
Code
function farm_livestock_default_log_type() {
$items = array();
$items['farm_birth'] = entity_import('log_type', '{
"type" : "farm_birth",
"label" : "Birth",
"weight" : 0,
"name_pattern" : "Birth: [log:field-farm-asset]",
"name_edit" : "0",
"done" : "1",
"rdf_mapping" : []
}');
$items['farm_medical'] = entity_import('log_type', '{
"type" : "farm_medical",
"label" : "Medical",
"weight" : 0,
"name_pattern" : "Medical [log:timestamp:short] [log:field-farm-asset]",
"name_edit" : "1",
"done" : "1",
"rdf_mapping" : []
}');
return $items;
}