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' ,
2017-05-19 15:11:30 +02:00
'weight' => 3 ,
2015-05-01 22:25:51 +02:00
),
),
'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' ,
2017-05-20 00:06:59 +02:00
'weight' => 7 ,
2015-05-01 22:25:51 +02:00
),
);
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' ,
2017-05-19 03:37:26 +02:00
'default_value' => array (),
2015-05-01 22:25:51 +02:00
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'above' ,
'module' => 'file' ,
'settings' => array (),
'type' => 'file_table' ,
2017-05-19 15:11:30 +02:00
'weight' => 5 ,
2015-05-01 22:25:51 +02:00
),
),
'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' ,
2017-07-20 19:53:48 +02:00
'file_extensions' => '' ,
2015-05-01 22:25:51 +02:00
'max_filesize' => '' ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
2017-05-19 03:37:26 +02:00
'module' => 'multiupload_filefield_widget' ,
2015-05-01 22:25:51 +02:00
'settings' => array (
'progress_indicator' => 'bar' ,
),
2017-05-19 03:37:26 +02:00
'type' => 'file_mfw' ,
2017-05-20 00:06:59 +02:00
'weight' => 9 ,
2015-05-01 22:25:51 +02:00
),
);
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' ,
2017-05-19 03:37:26 +02:00
'default_value' => array (),
2015-05-01 22:25:51 +02:00
'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' ,
2017-05-19 15:11:30 +02:00
'weight' => 4 ,
2015-05-01 22:25:51 +02:00
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_images' ,
2017-05-31 20:58:09 +02:00
'label' => 'Photos' ,
2015-05-01 22:25:51 +02:00
'required' => 0 ,
'settings' => array (
'alt_field' => 0 ,
'default_image' => 0 ,
2016-01-26 18:33:57 +01:00
'file_directory' => 'farm/asset/equipment' ,
2017-07-20 19:53:48 +02:00
'file_extensions' => '' ,
2015-05-01 22:25:51 +02:00
'max_filesize' => '' ,
'max_resolution' => '' ,
'min_resolution' => '' ,
'title_field' => 0 ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
2017-05-19 03:37:26 +02:00
'module' => 'multiupload_imagefield_widget' ,
2015-05-01 22:25:51 +02:00
'settings' => array (
'preview_image_style' => 'thumbnail' ,
'progress_indicator' => 'bar' ,
),
2017-05-19 03:37:26 +02:00
'type' => 'image_miw' ,
2017-05-20 00:06:59 +02:00
'weight' => 8 ,
2017-05-19 15:11:30 +02:00
),
);
// Exported field_instance: 'farm_asset-equipment-field_farm_manufacturer'.
$field_instances [ 'farm_asset-equipment-field_farm_manufacturer' ] = array (
'bundle' => 'equipment' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'text' ,
'settings' => array (),
'type' => 'text_default' ,
'weight' => 0 ,
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_manufacturer' ,
'label' => 'Manufacturer' ,
'required' => 0 ,
'settings' => array (
'text_processing' => 0 ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'text' ,
'settings' => array (
'size' => 60 ,
),
'type' => 'text_textfield' ,
2017-05-20 00:06:59 +02:00
'weight' => 4 ,
2017-05-19 15:11:30 +02:00
),
);
// Exported field_instance: 'farm_asset-equipment-field_farm_model'.
$field_instances [ 'farm_asset-equipment-field_farm_model' ] = array (
'bundle' => 'equipment' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'text' ,
'settings' => array (),
'type' => 'text_default' ,
'weight' => 1 ,
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_model' ,
'label' => 'Model' ,
'required' => 0 ,
'settings' => array (
'text_processing' => 0 ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'text' ,
'settings' => array (
'size' => 60 ,
),
'type' => 'text_textfield' ,
2017-05-20 00:06:59 +02:00
'weight' => 5 ,
2015-05-01 22:25:51 +02:00
),
);
2017-05-19 15:11:30 +02:00
// Exported field_instance: 'farm_asset-equipment-field_farm_serial_number'.
$field_instances [ 'farm_asset-equipment-field_farm_serial_number' ] = array (
'bundle' => 'equipment' ,
'default_value' => NULL ,
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'text' ,
'settings' => array (),
'type' => 'text_default' ,
'weight' => 2 ,
),
),
'entity_type' => 'farm_asset' ,
'field_name' => 'field_farm_serial_number' ,
'label' => 'Serial Number' ,
'required' => 0 ,
'settings' => array (
'text_processing' => 0 ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
'module' => 'text' ,
'settings' => array (
'size' => 60 ,
),
'type' => 'text_textfield' ,
2017-05-20 00:06:59 +02:00
'weight' => 6 ,
2017-05-19 15:11:30 +02:00
),
);
2016-05-03 18:43:13 +02:00
// Exported field_instance: 'log-farm_maintenance-field_farm_asset'.
$field_instances [ 'log-farm_maintenance-field_farm_asset' ] = array (
2015-05-01 22:25:51 +02:00
'bundle' => 'farm_maintenance' ,
'deleted' => 0 ,
2016-06-09 14:43:34 +02:00
'description' => 'What assets do this maintenance log pertain to?' ,
2015-05-01 22:25:51 +02:00
'display' => array (
'default' => array (
'label' => 'inline' ,
'module' => 'entityreference' ,
'settings' => array (
2017-05-16 04:47:12 +02:00
'bypass_access' => FALSE ,
2015-05-01 22:25:51 +02:00
'link' => 1 ,
),
'type' => 'entityreference_label' ,
'weight' => 0 ,
),
),
'entity_type' => 'log' ,
2016-05-03 18:43:13 +02:00
'field_name' => 'field_farm_asset' ,
'label' => 'Assets' ,
'required' => 0 ,
2015-05-01 22:25:51 +02:00
'settings' => array (
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
2016-05-03 18:43:13 +02:00
'module' => 'entityreference_view_widget' ,
2015-05-01 22:25:51 +02:00
'settings' => array (
2016-05-03 18:43:13 +02:00
'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' ,
2015-05-01 22:25:51 +02:00
),
2016-05-03 18:43:13 +02:00
'type' => 'entityreference_view_widget' ,
2015-05-01 22:25:51 +02:00
'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' ,
2017-05-19 03:37:26 +02:00
'default_value' => array (),
2015-10-05 19:42:40 +02:00
'deleted' => 0 ,
'description' => '' ,
'display' => array (
'default' => array (
'label' => 'above' ,
'module' => 'file' ,
'settings' => array (),
'type' => 'file_table' ,
2017-06-12 21:33:25 +02:00
'weight' => 4 ,
2015-10-05 19:42:40 +02:00
),
),
'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' ,
2017-07-20 19:53:48 +02:00
'file_extensions' => '' ,
2015-10-05 19:42:40 +02:00
'max_filesize' => '' ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
2017-05-19 03:37:26 +02:00
'module' => 'multiupload_filefield_widget' ,
2015-10-05 19:42:40 +02:00
'settings' => array (
'progress_indicator' => 'bar' ,
),
2017-05-19 03:37:26 +02:00
'type' => 'file_mfw' ,
2017-05-20 00:06:59 +02:00
'weight' => 6 ,
2015-10-05 19:42:40 +02:00
),
);
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' ,
2017-05-19 03:37:26 +02:00
'default_value' => array (),
2015-05-01 22:25:51 +02:00
'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' ,
2017-06-12 21:33:25 +02:00
'weight' => 3 ,
2015-05-01 22:25:51 +02:00
),
),
'entity_type' => 'log' ,
'field_name' => 'field_farm_images' ,
2017-05-31 20:58:09 +02:00
'label' => 'Photos' ,
2015-05-01 22:25:51 +02:00
'required' => 0 ,
'settings' => array (
'alt_field' => 0 ,
'default_image' => 0 ,
2016-01-26 18:33:57 +01:00
'file_directory' => 'farm/log/maintenance' ,
2017-07-20 19:53:48 +02:00
'file_extensions' => '' ,
2015-05-01 22:25:51 +02:00
'max_filesize' => '' ,
'max_resolution' => '' ,
'min_resolution' => '' ,
'title_field' => 0 ,
'user_register_form' => FALSE ,
),
'widget' => array (
'active' => 1 ,
2017-05-19 03:37:26 +02:00
'module' => 'multiupload_imagefield_widget' ,
2015-05-01 22:25:51 +02:00
'settings' => array (
'preview_image_style' => 'thumbnail' ,
'progress_indicator' => 'bar' ,
),
2017-05-19 03:37:26 +02:00
'type' => 'image_miw' ,
2017-05-20 00:06:59 +02:00
'weight' => 5 ,
2017-04-27 20:17:07 +02:00
),
);
2017-07-18 13:48:14 +02:00
// Exported field_instance: 'log-farm_maintenance-field_farm_log_category'.
$field_instances [ 'log-farm_maintenance-field_farm_log_category' ] = array (
'bundle' => 'farm_maintenance' ,
'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 ,
),
);
2017-06-12 21:33:25 +02:00
// Exported field_instance: 'log-farm_maintenance-field_farm_log_owner'.
$field_instances [ 'log-farm_maintenance-field_farm_log_owner' ] = array (
'bundle' => 'farm_maintenance' ,
'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 ,
),
);
2017-04-27 20:17:07 +02:00
// Exported field_instance: 'log-farm_maintenance-field_farm_movement'.
$field_instances [ 'log-farm_maintenance-field_farm_movement' ] = array (
'bundle' => 'farm_maintenance' ,
'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' ,
2017-06-12 21:33:25 +02:00
'weight' => 2 ,
2015-05-01 22:25:51 +02:00
),
);
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.
2016-05-03 18:43:13 +02:00
t ( 'Assets' );
2015-05-01 22:25:51 +02:00
t ( 'Description' );
t ( 'Files' );
2017-07-18 13:48:14 +02:00
t ( 'Log category' );
2017-05-19 15:11:30 +02:00
t ( 'Manufacturer' );
t ( 'Model' );
2017-04-27 20:17:07 +02:00
t ( 'Movement' );
2015-05-01 22:25:51 +02:00
t ( 'Notes' );
2017-06-12 21:33:25 +02:00
t ( 'Optionally assign this task to one or more people.' );
t ( 'Owner' );
2017-05-31 20:58:09 +02:00
t ( 'Photos' );
2017-05-19 15:11:30 +02:00
t ( 'Serial Number' );
2017-04-27 20:17:07 +02:00
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.' );
2017-07-18 13:48:14 +02:00
t ( 'Use this to organize your logs into categories for easier searching and filtering later.' );
2016-06-09 14:43:34 +02:00
t ( 'What assets do this maintenance log pertain to?' );
2015-05-01 22:25:51 +02:00
return $field_instances ;
}