3
0
Fork 0
mirror of https://github.com/farmOS/farmOS.git synced 2024-02-23 11:37:38 +01:00
farmOS/farm_livestock.features.field_instance.inc

547 lines
16 KiB
PHP
Raw Normal View History

<?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_group'
$field_instances['farm_asset-animal-field_farm_animal_group'] = array(
'bundle' => 'animal',
'default_value' => NULL,
'deleted' => 0,
2015-08-09 19:35:44 +02: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/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' => 2,
),
);
// 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' => 1,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_animal_parents'
$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',
'weight' => 6,
),
),
'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',
'weight' => 7,
),
);
// 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' => 5,
),
);
// 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' => 3,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_animal_type'
$field_instances['farm_asset-animal-field_farm_animal_type'] = array(
'bundle' => 'animal',
2015-06-11 21:13:36 +02:00
'default_value' => array(),
'deleted' => 0,
2015-08-09 19:35:44 +02:00
'description' => 'What type of animal is this? You can manage the list of available types in the ' . l('Animal Types', 'farm/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' => '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,
),
);
// 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_repeat_rule' => 'show',
),
'type' => 'date_default',
'weight' => 5,
),
),
'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',
'weight' => 6,
),
);
// 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' => 7,
),
),
'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' => 8,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_files'
$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',
'weight' => 9,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_files',
'label' => 'Files',
'required' => 0,
'settings' => array(
'description_field' => 1,
'file_directory' => '',
'file_extensions' => 'csv doc docx odt odp ods pdf ppt pptx txt xls xlsx kml kmz zip tar gz',
'filefield_paths' => array(
'active_updating' => 0,
'file_name' => array(
'options' => array(
'pathauto' => 0,
'transliterate' => 0,
),
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
),
'file_path' => array(
'options' => array(
'pathauto' => 0,
'transliterate' => 0,
),
'value' => 'farm/asset/animal/[farm_asset:id]',
),
'retroactive_update' => 0,
),
'filefield_paths_enabled' => 1,
'max_filesize' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'file',
'settings' => array(
'progress_indicator' => 'bar',
),
'type' => 'file_generic',
'weight' => 10,
),
);
// Exported field_instance: 'farm_asset-animal-field_farm_images'
$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',
'weight' => 8,
),
),
'entity_type' => 'farm_asset',
'field_name' => 'field_farm_images',
'label' => 'Photo(s)',
'required' => 0,
'settings' => array(
'alt_field' => 0,
'default_image' => 0,
'file_directory' => '',
'file_extensions' => 'png gif jpg jpeg',
'filefield_paths' => array(
'active_updating' => 0,
'file_name' => array(
'options' => array(
'pathauto' => 0,
'transliterate' => 0,
),
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
),
'file_path' => array(
'options' => array(
'pathauto' => 0,
'transliterate' => 0,
),
'value' => 'farm/asset/animal/[farm_asset:id]',
),
'retroactive_update' => 0,
),
'filefield_paths_enabled' => 1,
'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' => 9,
),
);
// 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' => 'above',
'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' => 'above',
'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' => 'above',
'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,
),
);
// Translatables
// Included for use with string extractors like potx.
2015-08-09 19:35:44 +02: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/animals/groups') . ' vocabulary.');
t('Body Location');
t('Date of birth');
t('Description');
t('Files');
t('Group');
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)');
t('Parents');
t('Photo(s)');
t('Sex');
t('Tag Type');
t('Type');
2015-08-09 19:35:44 +02:00
t('What type of animal is this? You can manage the list of available types in the ' . l('Animal Types', 'farm/animals/types') . ' vocabulary.');
return $field_instances;
}