Mercurial > hg > rr-repo
diff rrr_features.features.field_instance.inc @ 20:a0535331f47e
changed resources view
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Fri, 06 Dec 2013 11:36:04 +0000 |
parents | |
children | 517036c6c711 79f9b0ad72c5 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/rrr_features.features.field_instance.inc Fri Dec 06 11:36:04 2013 +0000 @@ -0,0 +1,330 @@ +<?php +/** + * @file + * rrr_features.features.field_instance.inc + */ + +/** + * Implements hook_field_default_field_instances(). + */ +function rrr_features_field_default_field_instances() { + $field_instances = array(); + + // Exported field_instance: 'node-biblio-field_dataset' + $field_instances['node-biblio-field_dataset'] = array( + 'bundle' => 'biblio', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'node_reference', + 'settings' => array(), + 'type' => 'node_reference_default', + 'weight' => 1, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_dataset', + 'label' => 'Dataset', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'noderefcreate', + 'settings' => array( + 'autocomplete_match' => 'contains', + 'autocomplete_path' => 'node_reference/autocomplete', + 'size' => 60, + ), + 'type' => 'noderefcreate_autocomplete', + 'weight' => 32, + ), + ); + + // Exported field_instance: 'node-biblio-field_experiment' + $field_instances['node-biblio-field_experiment'] = array( + 'bundle' => 'biblio', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'node_reference', + 'settings' => array(), + 'type' => 'node_reference_default', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_experiment', + 'label' => 'Experiment', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'noderefcreate', + 'settings' => array( + 'autocomplete_match' => 'contains', + 'autocomplete_path' => 'node_reference/autocomplete', + 'size' => 60, + ), + 'type' => 'noderefcreate_autocomplete', + 'weight' => 31, + ), + ); + + // Exported field_instance: 'node-biblio-field_image' + $field_instances['node-biblio-field_image'] = array( + 'bundle' => 'biblio', + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'image', + 'settings' => array( + 'image_link' => '', + 'image_style' => '', + ), + 'type' => 'image', + 'weight' => 4, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_image', + 'label' => 'Image', + 'required' => 0, + 'settings' => array( + 'alt_field' => 0, + 'default_image' => 0, + 'file_directory' => '', + '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' => 'throbber', + ), + 'type' => 'image_image', + 'weight' => 35, + ), + ); + + // Exported field_instance: 'node-biblio-field_pdf' + $field_instances['node-biblio-field_pdf'] = array( + 'bundle' => 'biblio', + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'file', + 'settings' => array(), + 'type' => 'file_default', + 'weight' => 5, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_pdf', + 'label' => 'PDF', + 'required' => 0, + 'settings' => array( + 'description_field' => 0, + 'file_directory' => '', + 'file_extensions' => 'txt', + 'max_filesize' => '', + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'pdf_to_image', + 'settings' => array( + 'pdf_to_image' => array( + 'density' => '25x25', + 'extra_args' => '', + 'hide_imagefield' => 0, + 'target_field' => 'field_image', + ), + 'progress_indicator' => NULL, + ), + 'type' => 'pdf_to_image', + 'weight' => 36, + ), + ); + + // Exported field_instance: 'node-biblio-field_publication' + $field_instances['node-biblio-field_publication'] = array( + 'bundle' => 'biblio', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'node_reference', + 'settings' => array(), + 'type' => 'node_reference_default', + 'weight' => 3, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_publication', + 'label' => 'Publication', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'noderefcreate', + 'settings' => array( + 'autocomplete_match' => 'contains', + 'autocomplete_path' => 'node_reference/autocomplete', + 'size' => 60, + ), + 'type' => 'noderefcreate_autocomplete', + 'weight' => 34, + ), + ); + + // Exported field_instance: 'node-biblio-field_software' + $field_instances['node-biblio-field_software'] = array( + 'bundle' => 'biblio', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'above', + 'module' => 'node_reference', + 'settings' => array(), + 'type' => 'node_reference_default', + 'weight' => 2, + ), + 'teaser' => array( + 'label' => 'above', + 'settings' => array(), + 'type' => 'hidden', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'field_software', + 'label' => 'Software', + 'required' => 0, + 'settings' => array( + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'active' => 1, + 'module' => 'noderefcreate', + 'settings' => array( + 'autocomplete_match' => 'contains', + 'autocomplete_path' => 'node_reference/autocomplete', + 'size' => 60, + ), + 'type' => 'noderefcreate_autocomplete', + 'weight' => 33, + ), + ); + + // Exported field_instance: 'node-page-body' + $field_instances['node-page-body'] = array( + 'bundle' => 'page', + 'default_value' => NULL, + 'deleted' => 0, + 'description' => '', + 'display' => array( + 'default' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array(), + 'type' => 'text_default', + 'weight' => 0, + ), + 'teaser' => array( + 'label' => 'hidden', + 'module' => 'text', + 'settings' => array( + 'trim_length' => 600, + ), + 'type' => 'text_summary_or_trimmed', + 'weight' => 0, + ), + ), + 'entity_type' => 'node', + 'field_name' => 'body', + 'label' => 'Body', + 'required' => FALSE, + 'settings' => array( + 'display_summary' => TRUE, + 'text_processing' => 1, + 'user_register_form' => FALSE, + ), + 'widget' => array( + 'module' => 'text', + 'settings' => array( + 'rows' => 20, + 'summary_rows' => 5, + ), + 'type' => 'text_textarea_with_summary', + 'weight' => 1, + ), + ); + + // Translatables + // Included for use with string extractors like potx. + t('Body'); + t('Dataset'); + t('Experiment'); + t('Image'); + t('PDF'); + t('Publication'); + t('Software'); + + return $field_instances; +}