2015-05-01 22:25:51 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @file
|
|
|
|
* farm_equipment.features.field_instance.inc
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Implements hook_field_default_field_instances().
|
|
|
|
*/
|
|
|
|
function farm_equipment_field_default_field_instances() {
|
|
|
|
$field_instances = array();
|
|
|
|
|
2016-01-28 18:28:30 +01:00
|
|
|
// Exported field_instance: 'farm_asset-equipment-field_farm_description'.
|
2015-05-02 00:40:46 +02:00
|
|
|
$field_instances['farm_asset-equipment-field_farm_description'] = array(
|
2015-05-01 22:25:51 +02:00
|
|
|
'bundle' => 'equipment',
|
|
|
|
'default_value' => NULL,
|
|
|
|
'deleted' => 0,
|
|
|
|
'description' => '',
|
|
|
|
'display' => array(
|
|
|
|
'default' => array(
|
|
|
|
'label' => 'above',
|
|
|
|
'module' => 'text',
|
|
|
|
'settings' => array(),
|
|
|
|
'type' => 'text_default',
|
|
|
|
'weight' => 0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'entity_type' => 'farm_asset',
|
2015-05-02 00:40:46 +02:00
|
|
|
'field_name' => 'field_farm_description',
|
2015-05-01 22:25:51 +02:00
|
|
|
'label' => 'Description',
|
|
|
|
'required' => 0,
|
|
|
|
'settings' => array(
|
2015-11-02 14:13:19 +01:00
|
|
|
'text_processing' => 1,
|
2015-05-01 22:25:51 +02:00
|
|
|
'user_register_form' => FALSE,
|
|
|
|
),
|
|
|
|
'widget' => array(
|
|
|
|
'active' => 1,
|
|
|
|
'module' => 'text',
|
|
|
|
'settings' => array(
|
|
|
|
'rows' => 5,
|
|
|
|
),
|
|
|
|
'type' => 'text_textarea',
|
|
|
|
'weight' => 1,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
2016-01-28 18:28:30 +01:00
|
|
|
// Exported field_instance: 'farm_asset-equipment-field_farm_files'.
|
2015-05-01 22:25:51 +02:00
|
|
|
$field_instances['farm_asset-equipment-field_farm_files'] = array(
|
|
|
|
'bundle' => 'equipment',
|
|
|
|
'deleted' => 0,
|
|
|
|
'description' => '',
|
|
|
|
'display' => array(
|
|
|
|
'default' => array(
|
|
|
|
'label' => 'above',
|
|
|
|
'module' => 'file',
|
|
|
|
'settings' => array(),
|
|
|
|
'type' => 'file_table',
|
|
|
|
'weight' => 2,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'entity_type' => 'farm_asset',
|
|
|
|
'field_name' => 'field_farm_files',
|
|
|
|
'label' => 'Files',
|
|
|
|
'required' => 0,
|
|
|
|
'settings' => array(
|
|
|
|
'description_field' => 1,
|
2016-01-26 18:33:57 +01:00
|
|
|
'file_directory' => 'farm/asset/equipment',
|
2015-05-01 22:25:51 +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',
|
|
|
|
'weight' => 3,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
2016-01-28 18:28:30 +01:00
|
|
|
// Exported field_instance: 'farm_asset-equipment-field_farm_images'.
|
2015-05-01 22:25:51 +02:00
|
|
|
$field_instances['farm_asset-equipment-field_farm_images'] = array(
|
|
|
|
'bundle' => 'equipment',
|
|
|
|
'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' => 1,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'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:33:57 +01:00
|
|
|
'file_directory' => 'farm/asset/equipment',
|
2015-05-01 22:25:51 +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',
|
|
|
|
'weight' => 2,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
2016-01-28 18:28:30 +01:00
|
|
|
// Exported field_instance: 'log-farm_maintenance-field_farm_equipment'.
|
2015-05-01 22:25:51 +02:00
|
|
|
$field_instances['log-farm_maintenance-field_farm_equipment'] = array(
|
|
|
|
'bundle' => 'farm_maintenance',
|
|
|
|
'default_value' => NULL,
|
|
|
|
'deleted' => 0,
|
|
|
|
'description' => 'What equipment is being maintained?',
|
|
|
|
'display' => array(
|
|
|
|
'default' => array(
|
|
|
|
'label' => 'inline',
|
|
|
|
'module' => 'entityreference',
|
|
|
|
'settings' => array(
|
|
|
|
'link' => 1,
|
|
|
|
),
|
|
|
|
'type' => 'entityreference_label',
|
|
|
|
'weight' => 0,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
'entity_type' => 'log',
|
|
|
|
'field_name' => 'field_farm_equipment',
|
|
|
|
'label' => 'Equipment',
|
|
|
|
'required' => 1,
|
|
|
|
'settings' => array(
|
|
|
|
'user_register_form' => FALSE,
|
|
|
|
),
|
|
|
|
'widget' => array(
|
|
|
|
'active' => 1,
|
|
|
|
'module' => 'entityreference',
|
|
|
|
'settings' => array(
|
|
|
|
'match_operator' => 'CONTAINS',
|
|
|
|
'path' => '',
|
|
|
|
'size' => 60,
|
|
|
|
),
|
|
|
|
'type' => 'entityreference_autocomplete',
|
|
|
|
'weight' => 2,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
2016-01-28 18:28:30 +01:00
|
|
|
// Exported field_instance: 'log-farm_maintenance-field_farm_files'.
|
2015-10-05 19:42:40 +02:00
|
|
|
$field_instances['log-farm_maintenance-field_farm_files'] = array(
|
|
|
|
'bundle' => 'farm_maintenance',
|
|
|
|
'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,
|
2016-01-26 18:33:57 +01:00
|
|
|
'file_directory' => 'farm/log/maintenance',
|
2015-10-05 19:42:40 +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',
|
|
|
|
'weight' => 5,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
2016-01-28 18:28:30 +01:00
|
|
|
// Exported field_instance: 'log-farm_maintenance-field_farm_images'.
|
2015-05-01 22:25:51 +02:00
|
|
|
$field_instances['log-farm_maintenance-field_farm_images'] = array(
|
|
|
|
'bundle' => 'farm_maintenance',
|
|
|
|
'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',
|
2015-10-05 19:42:40 +02:00
|
|
|
'weight' => 2,
|
2015-05-01 22:25:51 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
'entity_type' => 'log',
|
|
|
|
'field_name' => 'field_farm_images',
|
|
|
|
'label' => 'Photo(s)',
|
|
|
|
'required' => 0,
|
|
|
|
'settings' => array(
|
|
|
|
'alt_field' => 0,
|
|
|
|
'default_image' => 0,
|
2016-01-26 18:33:57 +01:00
|
|
|
'file_directory' => 'farm/log/maintenance',
|
2015-05-01 22:25:51 +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',
|
|
|
|
'weight' => 4,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
|
2016-01-28 18:28:30 +01:00
|
|
|
// Exported field_instance: 'log-farm_maintenance-field_farm_notes'.
|
2015-05-01 22:25:51 +02:00
|
|
|
$field_instances['log-farm_maintenance-field_farm_notes'] = array(
|
|
|
|
'bundle' => 'farm_maintenance',
|
|
|
|
'default_value' => NULL,
|
|
|
|
'deleted' => 0,
|
|
|
|
'description' => '',
|
|
|
|
'display' => array(
|
|
|
|
'default' => array(
|
|
|
|
'label' => 'inline',
|
|
|
|
'module' => 'text',
|
|
|
|
'settings' => array(),
|
|
|
|
'type' => 'text_default',
|
2015-10-05 19:42:40 +02:00
|
|
|
'weight' => 1,
|
2015-05-01 22:25:51 +02:00
|
|
|
),
|
|
|
|
),
|
|
|
|
'entity_type' => 'log',
|
|
|
|
'field_name' => 'field_farm_notes',
|
|
|
|
'label' => 'Notes',
|
|
|
|
'required' => 0,
|
|
|
|
'settings' => array(
|
2015-11-02 14:13:19 +01:00
|
|
|
'text_processing' => 1,
|
2015-05-01 22:25:51 +02:00
|
|
|
'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('Description');
|
|
|
|
t('Equipment');
|
|
|
|
t('Files');
|
|
|
|
t('Notes');
|
|
|
|
t('Photo(s)');
|
|
|
|
t('What equipment is being maintained?');
|
|
|
|
|
|
|
|
return $field_instances;
|
|
|
|
}
|