farmOS/modules/farm/farm_livestock/farm_livestock.features.fie...

826 lines
24 KiB
PHP

<?php
/**
* @file
* farm_livestock.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function farm_livestock_field_default_field_instances() {
$field_instances = array();
// 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' => 7,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_animal_group'.
$field_instances['farm_asset-animal-field_farm_animal_group'] = array(
'bundle' => 'animal',
'default_value' => NULL,
'deleted' => 0,
'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.',
'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' => 5,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_animal_nicknames'.
$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' => 9,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_animal_sex'.
$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' => 6,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_animal_tag'.
$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' => 8,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_animal_type'.
$field_instances['farm_asset-animal-field_farm_animal_type'] = array(
'bundle' => 'animal',
'default_value' => NULL,
'deleted' => 0,
'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.',
'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' => 'Species/breed',
'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,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_date'.
$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' => '',
'show_remaining_days' => FALSE,
),
'type' => 'date_default',
'weight' => 6,
),
),
'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',
'no_fieldset' => 1,
'text_parts' => array(),
'year_range' => '-3:+3',
),
'type' => 'date_popup',
'weight' => 3,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_description'.
$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',
'weight' => 9,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_description',
'label' => 'Description',
'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' => 11,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_files'.
$field_instances['farm_asset-animal-field_farm_files'] = array(
'bundle' => 'animal',
'default_value' => array(),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 11,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_files',
'label' => 'Files',
'required' => 0,
'settings' => array(
'description_field' => 1,
'file_directory' => 'farm/asset/animal',
'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' => 'multiupload_filefield_widget',
'settings' => array(
'progress_indicator' => 'bar',
),
'type' => 'file_mfw',
'weight' => 5,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_images'.
$field_instances['farm_asset-animal-field_farm_images'] = array(
'bundle' => 'animal',
'default_value' => array(),
'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' => 10,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_images',
'label' => 'Photos',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'default_image' => 0,
'file_directory' => 'farm/asset/animal',
'file_extensions' => 'png gif jpg jpeg',
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'multiupload_imagefield_widget',
'settings' => array(
'preview_image_style' => 'thumbnail',
'progress_indicator' => 'bar',
),
'type' => 'image_miw',
'weight' => 4,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_parent'.
$field_instances['farm_asset-animal-field_farm_parent'] = array(
'bundle' => 'animal',
'default_value' => array(),
'deleted' => 0,
'description' => 'Specify the parent(s) of this animal.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => 8,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_parent',
'label' => 'Parent(s)',
'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' => 3,
),
);
// Exported field_instance:
// 'field_collection_item-field_farm_animal_tag-field_farm_animal_tag_id'.
$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(
'label' => 'inline',
'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:
// 'field_collection_item-field_farm_animal_tag-field_farm_animal_tag_location'.
$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(
'label' => 'inline',
'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:
// 'field_collection_item-field_farm_animal_tag-field_farm_animal_tag_type'.
$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(
'label' => 'inline',
'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,
),
);
// 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 animals do this medical log pertain to?',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => 1,
),
'type' => 'entityreference_label',
'weight' => 0,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_asset',
'label' => 'Animals',
'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' => 3,
),
);
// Exported field_instance: 'log-farm_medical-field_farm_files'.
$field_instances['log-farm_medical-field_farm_files'] = array(
'bundle' => 'farm_medical',
'default_value' => array(),
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'file',
'settings' => array(),
'type' => 'file_table',
'weight' => 4,
),
),
'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' => 'multiupload_filefield_widget',
'settings' => array(
'progress_indicator' => 'bar',
),
'type' => 'file_mfw',
'weight' => 6,
),
);
// Exported field_instance: 'log-farm_medical-field_farm_images'.
$field_instances['log-farm_medical-field_farm_images'] = array(
'bundle' => 'farm_medical',
'default_value' => array(),
'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' => 3,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_images',
'label' => 'Photos',
'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' => 'multiupload_imagefield_widget',
'settings' => array(
'preview_image_style' => 'thumbnail',
'progress_indicator' => 'bar',
),
'type' => 'image_miw',
'weight' => 5,
),
);
// Exported field_instance: 'log-farm_medical-field_farm_log_category'.
$field_instances['log-farm_medical-field_farm_log_category'] = array(
'bundle' => 'farm_medical',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Use this to organize your logs into categories for easier searching and filtering later.',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'taxonomy',
'settings' => array(),
'type' => 'taxonomy_term_reference_link',
'weight' => 6,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_category',
'label' => 'Log category',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 10,
),
);
// Exported field_instance: 'log-farm_medical-field_farm_log_owner'.
$field_instances['log-farm_medical-field_farm_log_owner'] = array(
'bundle' => 'farm_medical',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Optionally assign this task to one or more people.',
'display' => array(
'default' => array(
'label' => 'inline',
'module' => 'entityreference',
'settings' => array(
'bypass_access' => FALSE,
'link' => FALSE,
),
'type' => 'entityreference_label',
'weight' => 2,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_log_owner',
'label' => 'Owner',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'options',
'settings' => array(),
'type' => 'options_select',
'weight' => 8,
),
);
// Exported field_instance: 'log-farm_medical-field_farm_movement'.
$field_instances['log-farm_medical-field_farm_movement'] = array(
'bundle' => 'farm_medical',
'default_value' => NULL,
'deleted' => 0,
'description' => 'Use these fields to record a movement with this log entry. This will be used to define the location of any referenced assets. The current location of any asset is determined by the most recently completed movement log. Only the "to" field is required.',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'field_collection',
'settings' => array(
'view_mode' => 'full',
),
'type' => 'field_collection_fields',
'weight' => 5,
),
),
'entity_type' => 'log',
'field_name' => 'field_farm_movement',
'label' => 'Movement',
'required' => 0,
'settings' => array(
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 0,
'module' => 'field_collection',
'settings' => array(),
'type' => 'field_collection_embed',
'weight' => 1,
),
);
// 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,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Animals');
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.');
t('Body Location');
t('Castrated');
t('Date of birth');
t('Description');
t('Files');
t('Group');
t('Has this animal been castrated?');
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('Log category');
t('Movement');
t('Nickname(s)');
t('Notes');
t('Optionally assign this task to one or more people.');
t('Owner');
t('Parent(s)');
t('Photos');
t('Sex');
t('Species/breed');
t('Specify the parent(s) of this animal.');
t('Tag Type');
t('Use these fields to record a movement with this log entry. This will be used to define the location of any referenced assets. The current location of any asset is determined by the most recently completed movement log. Only the "to" field is required.');
t('Use this to organize your logs into categories for easier searching and filtering later.');
t('What animals do this medical log pertain to?');
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.');
return $field_instances;
}