2015-05-01 22:42:31 +02:00
< ? php
/**
* @ file
* farm_livestock . features . field_instance . inc
*/
/**
* Implements hook_field_default_field_instances () .
*/
function farm_livestock_field_default_field_instances () {
$field_instances = array ();
2016-07-13 20:33:38 +02:00
// Exported field_instance: 'farm_asset-animal-field_farm_animal_castrated'.
$field_instances [ 'farm_asset-animal-field_farm_animal_castrated' ] = array (
'bundle' => 'animal' ,
'default_value' => array (
0 => array (
'value' => 0 ,
),
),
'deleted' => 0 ,
'description' => 'Has this animal been castrated?' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'list' ,
'settings' => array (),
'type' => 'list_default' ,
'weight' => 5 ,
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_animal_castrated' ,
'label' => 'Castrated' ,
'required' => 0 ,
'settings' => array (
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'options' ,
'settings' => array (
'display_label' => 1 ,
),
'type' => 'options_onoff' ,
'weight' => 6 ,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_animal_group'.
2015-05-01 22:42:31 +02:00
$field_instances [ 'farm_asset-animal-field_farm_animal_group' ] = array (
'bundle' => 'animal' ,
'default_value' => NULL ,
'deleted' => 0 ,
2016-02-01 00:24:29 +01:00
'description' => 'Assign this animal to a particular group, herd, flock, etc. You can manage the list of available groups in the ' . l ( 'Animal Groups' , 'farm/assets/animals/groups' ) . ' vocabulary.' ,
2015-05-01 22:42:31 +02:00
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'taxonomy' ,
'settings' => array (),
'type' => 'taxonomy_term_reference_link' ,
'weight' => 1 ,
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_animal_group' ,
'label' => 'Group' ,
'required' => 0 ,
'settings' => array (
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 0 ,
'module' => 'taxonomy' ,
'settings' => array (
'autocomplete_path' => 'taxonomy/autocomplete' ,
'size' => 60 ,
),
'type' => 'taxonomy_autocomplete' ,
'weight' => 2 ,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_animal_nicknames'.
2015-05-01 22:42:31 +02:00
$field_instances [ 'farm_asset-animal-field_farm_animal_nicknames' ] = array (
'bundle' => 'animal' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => 'List any nickname(s) of this animal.' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'text' ,
'settings' => array (),
'type' => 'text_default' ,
'weight' => 0 ,
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_animal_nicknames' ,
'label' => 'Nickname(s)' ,
'required' => 0 ,
'settings' => array (
'text_processing' => 0 ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'text' ,
'settings' => array (
'size' => 60 ,
),
'type' => 'text_textfield' ,
'weight' => 1 ,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_animal_parents'.
2015-05-01 22:42:31 +02:00
$field_instances [ 'farm_asset-animal-field_farm_animal_parents' ] = array (
'bundle' => 'animal' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'entityreference' ,
'settings' => array (
'link' => FALSE ,
),
'type' => 'entityreference_label' ,
2016-07-13 20:33:38 +02:00
'weight' => 7 ,
2015-05-01 22:42:31 +02:00
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_animal_parents' ,
'label' => 'Parents' ,
'required' => 0 ,
'settings' => array (
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'entityreference' ,
'settings' => array (
'match_operator' => 'CONTAINS' ,
'path' => '' ,
'size' => 60 ,
),
'type' => 'entityreference_autocomplete' ,
2016-07-13 20:33:38 +02:00
'weight' => 8 ,
2015-05-01 22:42:31 +02:00
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_animal_sex'.
2015-05-01 22:42:31 +02:00
$field_instances [ 'farm_asset-animal-field_farm_animal_sex' ] = array (
'bundle' => 'animal' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'list' ,
'settings' => array (),
'type' => 'list_default' ,
'weight' => 4 ,
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_animal_sex' ,
'label' => 'Sex' ,
'required' => 1 ,
'settings' => array (
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'options' ,
'settings' => array (),
'type' => 'options_select' ,
'weight' => 5 ,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_animal_tag'.
2015-05-01 22:42:31 +02:00
$field_instances [ 'farm_asset-animal-field_farm_animal_tag' ] = array (
'bundle' => 'animal' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => 'List any identification tags that this animal has. These can be ear tags, tattoos, leg bands, etc. Use the fields below to describe the type, location, and ID of each.' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'field_collection' ,
'settings' => array (
'view_mode' => 'full' ,
),
'type' => 'field_collection_fields' ,
'weight' => 2 ,
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_animal_tag' ,
'label' => 'ID Tag(s)' ,
'required' => 0 ,
'settings' => array (
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 0 ,
'module' => 'field_collection' ,
'settings' => array (),
'type' => 'field_collection_embed' ,
'weight' => 3 ,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_animal_type'.
2015-05-01 22:42:31 +02:00
$field_instances [ 'farm_asset-animal-field_farm_animal_type' ] = array (
'bundle' => 'animal' ,
2015-06-11 21:13:36 +02:00
'default_value' => array (),
2015-05-01 22:42:31 +02:00
'deleted' => 0 ,
2016-05-06 20:52:51 +02:00
'description' => 'What is the species/breed of this animal? You can manage the list of available species/breeds in the ' . l ( 'Animal Species/Breeds' , 'farm/assets/animals/types' ) . ' vocabulary.' ,
2015-05-01 22:42:31 +02:00
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'taxonomy' ,
'settings' => array (),
'type' => 'taxonomy_term_reference_link' ,
'weight' => 3 ,
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_animal_type' ,
'label' => 'Type' ,
'required' => 1 ,
'settings' => array (
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 0 ,
'module' => 'taxonomy' ,
'settings' => array (
'autocomplete_path' => 'taxonomy/autocomplete' ,
'size' => 60 ,
),
'type' => 'taxonomy_autocomplete' ,
'weight' => 4 ,
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_date'.
2015-05-01 22:42:31 +02:00
$field_instances [ 'farm_asset-animal-field_farm_date' ] = array (
'bundle' => 'animal' ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'date' ,
'settings' => array (
'format_type' => 'long' ,
'fromto' => 'both' ,
'multiple_from' => '' ,
'multiple_number' => '' ,
'multiple_to' => '' ,
2016-01-28 18:30:05 +01:00
'show_remaining_days' => FALSE ,
2015-05-01 22:42:31 +02:00
),
'type' => 'date_default' ,
2016-07-13 20:33:38 +02:00
'weight' => 6 ,
2015-05-01 22:42:31 +02:00
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_date' ,
'label' => 'Date of birth' ,
'required' => 0 ,
'settings' => array (
'default_value' => 'now' ,
'default_value2' => 'same' ,
'default_value_code' => '' ,
'default_value_code2' => '' ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'date' ,
'settings' => array (
'increment' => 15 ,
'input_format' => 'M j Y - g:i:sa' ,
'input_format_custom' => '' ,
'label_position' => 'above' ,
'repeat_collapsed' => 0 ,
'text_parts' => array (),
'year_range' => '-3:+3' ,
),
'type' => 'date_popup' ,
2016-07-13 20:33:38 +02:00
'weight' => 7 ,
2015-05-01 22:42:31 +02:00
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_description'.
2015-05-02 00:48:27 +02:00
$field_instances [ 'farm_asset-animal-field_farm_description' ] = array (
'bundle' => 'animal' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'above' ,
'module' => 'text' ,
'settings' => array (),
'type' => 'text_default' ,
2016-07-13 20:33:38 +02:00
'weight' => 8 ,
2015-05-02 00:48:27 +02:00
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_description' ,
'label' => 'Description' ,
'required' => 0 ,
'settings' => array (
2015-11-02 14:14:22 +01:00
'text_processing' => 1 ,
2015-05-02 00:48:27 +02:00
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'text' ,
'settings' => array (
'rows' => 5 ,
),
'type' => 'text_textarea' ,
2016-07-13 20:33:38 +02:00
'weight' => 9 ,
2015-05-02 00:48:27 +02:00
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_files'.
2015-05-01 22:42:31 +02:00
$field_instances [ 'farm_asset-animal-field_farm_files' ] = array (
'bundle' => 'animal' ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'above' ,
'module' => 'file' ,
'settings' => array (),
'type' => 'file_table' ,
2016-07-13 20:33:38 +02:00
'weight' => 10 ,
2015-05-01 22:42:31 +02:00
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_files' ,
'label' => 'Files' ,
'required' => 0 ,
'settings' => array (
'description_field' => 1 ,
2016-01-26 18:34:30 +01:00
'file_directory' => 'farm/asset/animal' ,
2015-05-01 22:42:31 +02:00
'file_extensions' => 'csv doc docx odt odp ods pdf ppt pptx txt xls xlsx kml kmz zip tar gz' ,
'max_filesize' => '' ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'file' ,
'settings' => array (
'progress_indicator' => 'bar' ,
),
'type' => 'file_generic' ,
2016-07-13 20:33:38 +02:00
'weight' => 11 ,
2015-05-01 22:42:31 +02:00
),
);
2016-01-28 18:30:05 +01:00
// Exported field_instance: 'farm_asset-animal-field_farm_images'.
2015-05-01 22:42:31 +02:00
$field_instances [ 'farm_asset-animal-field_farm_images' ] = array (
'bundle' => 'animal' ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'above' ,
'module' => 'colorbox' ,
'settings' => array (
'colorbox_caption' => 'auto' ,
'colorbox_caption_custom' => '' ,
'colorbox_gallery' => 'post' ,
'colorbox_gallery_custom' => '' ,
'colorbox_image_style' => '' ,
'colorbox_multivalue_index' => NULL ,
'colorbox_node_style' => 'thumbnail' ,
'colorbox_node_style_first' => 'large' ,
),
'type' => 'colorbox' ,
2016-07-13 20:33:38 +02:00
'weight' => 9 ,
2015-05-01 22:42:31 +02:00
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_images' ,
'label' => 'Photo(s)' ,
'required' => 0 ,
'settings' => array (
'alt_field' => 0 ,
'default_image' => 0 ,
2016-01-26 18:34:30 +01:00
'file_directory' => 'farm/asset/animal' ,
2015-05-01 22:42:31 +02:00
'file_extensions' => 'png gif jpg jpeg' ,
'max_filesize' => '' ,
'max_resolution' => '' ,
'min_resolution' => '' ,
'title_field' => 0 ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'image' ,
'settings' => array (
'preview_image_style' => 'thumbnail' ,
'progress_indicator' => 'bar' ,
),
'type' => 'image_image' ,
2016-07-13 20:33:38 +02:00
'weight' => 10 ,
2015-05-01 22:42:31 +02:00
),
);
// Exported field_instance:
2016-01-28 18:30:05 +01:00
// 'field_collection_item-field_farm_animal_tag-field_farm_animal_tag_id'.
2015-05-01 22:42:31 +02:00
$field_instances [ 'field_collection_item-field_farm_animal_tag-field_farm_animal_tag_id' ] = array (
'bundle' => 'field_farm_animal_tag' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
2016-05-03 19:50:38 +02:00
'label' => 'inline' ,
2015-05-01 22:42:31 +02:00
'module' => 'text' ,
'settings' => array (),
'type' => 'text_default' ,
'weight' => 0 ,
),
),
'entity_type' => 'field_collection_item' ,
'field_name' => 'field_farm_animal_tag_id' ,
'label' => 'ID' ,
'required' => 0 ,
'settings' => array (
'text_processing' => 0 ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'text' ,
'settings' => array (
'size' => 60 ,
),
'type' => 'text_textfield' ,
'weight' => 1 ,
),
);
// Exported field_instance:
2016-01-28 18:30:05 +01:00
// 'field_collection_item-field_farm_animal_tag-field_farm_animal_tag_location'.
2015-05-01 22:42:31 +02:00
$field_instances [ 'field_collection_item-field_farm_animal_tag-field_farm_animal_tag_location' ] = array (
'bundle' => 'field_farm_animal_tag' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
2016-05-03 19:50:38 +02:00
'label' => 'inline' ,
2015-05-01 22:42:31 +02:00
'module' => 'text' ,
'settings' => array (),
'type' => 'text_default' ,
'weight' => 1 ,
),
),
'entity_type' => 'field_collection_item' ,
'field_name' => 'field_farm_animal_tag_location' ,
'label' => 'Body Location' ,
'required' => 0 ,
'settings' => array (
'text_processing' => 0 ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'text' ,
'settings' => array (
'size' => 60 ,
),
'type' => 'text_textfield' ,
'weight' => 3 ,
),
);
// Exported field_instance:
2016-01-28 18:30:05 +01:00
// 'field_collection_item-field_farm_animal_tag-field_farm_animal_tag_type'.
2015-05-01 22:42:31 +02:00
$field_instances [ 'field_collection_item-field_farm_animal_tag-field_farm_animal_tag_type' ] = array (
'bundle' => 'field_farm_animal_tag' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
2016-05-03 19:50:38 +02:00
'label' => 'inline' ,
2015-05-01 22:42:31 +02:00
'module' => 'list' ,
'settings' => array (),
'type' => 'list_default' ,
'weight' => 2 ,
),
),
'entity_type' => 'field_collection_item' ,
'field_name' => 'field_farm_animal_tag_type' ,
'label' => 'Tag Type' ,
'required' => 0 ,
'settings' => array (
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'options' ,
'settings' => array (),
'type' => 'options_select' ,
'weight' => 2 ,
),
);
2016-06-08 19:17:48 +02:00
// Exported field_instance: 'log-farm_medical-field_farm_asset'.
$field_instances [ 'log-farm_medical-field_farm_asset' ] = array (
'bundle' => 'farm_medical' ,
'deleted' => 0 ,
'description' => 'What assets do this medical log pertain to?' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'entityreference' ,
'settings' => array (
'link' => 1 ,
),
'type' => 'entityreference_label' ,
'weight' => 0 ,
),
),
'entity_type' => 'log' ,
'field_name' => 'field_farm_asset' ,
'label' => 'Assets' ,
'required' => 0 ,
'settings' => array (
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'entityreference_view_widget' ,
'settings' => array (
'allow_duplicates' => 0 ,
'close_modal' => 1 ,
'pass_argument' => 1 ,
'pass_arguments' => '' ,
'rendered_entity' => 0 ,
'view' => 'farm_asset_entityreference_view|entityreference_view_widget' ,
'view_mode' => 'full' ,
),
'type' => 'entityreference_view_widget' ,
'weight' => 2 ,
),
);
// Exported field_instance: 'log-farm_medical-field_farm_files'.
$field_instances [ 'log-farm_medical-field_farm_files' ] = array (
'bundle' => 'farm_medical' ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'above' ,
'module' => 'file' ,
'settings' => array (),
'type' => 'file_table' ,
'weight' => 3 ,
),
),
'entity_type' => 'log' ,
'field_name' => 'field_farm_files' ,
'label' => 'Files' ,
'required' => 0 ,
'settings' => array (
'description_field' => 1 ,
'file_directory' => 'farm/log/medical' ,
'file_extensions' => 'csv doc docx odt odp ods pdf ppt pptx txt xls xlsx kml kmz zip tar gz' ,
'max_filesize' => '' ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'file' ,
'settings' => array (
'progress_indicator' => 'bar' ,
),
'type' => 'file_generic' ,
'weight' => 5 ,
),
);
// Exported field_instance: 'log-farm_medical-field_farm_images'.
$field_instances [ 'log-farm_medical-field_farm_images' ] = array (
'bundle' => 'farm_medical' ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'above' ,
'module' => 'colorbox' ,
'settings' => array (
'colorbox_caption' => 'auto' ,
'colorbox_caption_custom' => '' ,
'colorbox_gallery' => 'post' ,
'colorbox_gallery_custom' => '' ,
'colorbox_image_style' => '' ,
'colorbox_multivalue_index' => NULL ,
'colorbox_node_style' => 'thumbnail' ,
'colorbox_node_style_first' => 'large' ,
),
'type' => 'colorbox' ,
'weight' => 2 ,
),
),
'entity_type' => 'log' ,
'field_name' => 'field_farm_images' ,
'label' => 'Photo(s)' ,
'required' => 0 ,
'settings' => array (
'alt_field' => 0 ,
'default_image' => 0 ,
'file_directory' => 'farm/log/medical' ,
'file_extensions' => 'png gif jpg jpeg' ,
'max_filesize' => '' ,
'max_resolution' => '' ,
'min_resolution' => '' ,
'title_field' => 0 ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'image' ,
'settings' => array (
'preview_image_style' => 'thumbnail' ,
'progress_indicator' => 'bar' ,
),
'type' => 'image_image' ,
'weight' => 4 ,
),
);
// Exported field_instance: 'log-farm_medical-field_farm_notes'.
$field_instances [ 'log-farm_medical-field_farm_notes' ] = array (
'bundle' => 'farm_medical' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'text' ,
'settings' => array (),
'type' => 'text_default' ,
'weight' => 1 ,
),
),
'entity_type' => 'log' ,
'field_name' => 'field_farm_notes' ,
'label' => 'Notes' ,
'required' => 0 ,
'settings' => array (
'text_processing' => 1 ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'text' ,
'settings' => array (
'rows' => 5 ,
),
'type' => 'text_textarea' ,
'weight' => 3 ,
),
);
2015-05-01 22:42:31 +02:00
// Translatables
// Included for use with string extractors like potx.
2016-06-08 19:17:48 +02:00
t ( 'Assets' );
2016-02-01 00:24:29 +01:00
t ( 'Assign this animal to a particular group, herd, flock, etc. You can manage the list of available groups in the ' . l ( 'Animal Groups' , 'farm/assets/animals/groups' ) . ' vocabulary.' );
2015-05-01 22:42:31 +02:00
t ( 'Body Location' );
2016-07-13 20:33:38 +02:00
t ( 'Castrated' );
2015-05-01 22:42:31 +02:00
t ( 'Date of birth' );
t ( 'Description' );
t ( 'Files' );
t ( 'Group' );
2016-07-13 20:33:38 +02:00
t ( 'Has this animal been castrated?' );
2015-05-01 22:42:31 +02:00
t ( 'ID' );
t ( 'ID Tag(s)' );
t ( 'List any identification tags that this animal has. These can be ear tags, tattoos, leg bands, etc. Use the fields below to describe the type, location, and ID of each.' );
t ( 'List any nickname(s) of this animal.' );
t ( 'Nickname(s)' );
2016-06-08 19:17:48 +02:00
t ( 'Notes' );
2015-05-01 22:42:31 +02:00
t ( 'Parents' );
t ( 'Photo(s)' );
t ( 'Sex' );
t ( 'Tag Type' );
t ( 'Type' );
2016-06-08 19:17:48 +02:00
t ( 'What assets do this medical log pertain to?' );
2016-05-06 20:52:51 +02:00
t ( 'What is the species/breed of this animal? You can manage the list of available species/breeds in the ' . l ( 'Animal Species/Breeds' , 'farm/assets/animals/types' ) . ' vocabulary.' );
2015-05-01 22:42:31 +02:00
return $field_instances ;
}