123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <?php
- /**
- * @file
- * ffdn_article.features.field_instance.inc
- */
- /**
- * Implements hook_field_default_field_instances().
- */
- function ffdn_article_field_default_field_instances() {
- $field_instances = array();
- // Exported field_instance: 'comment-comment_node_article-comment_body'.
- $field_instances['comment-comment_node_article-comment_body'] = array(
- 'bundle' => 'comment_node_article',
- 'default_value' => NULL,
- 'deleted' => 0,
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'hidden',
- 'module' => 'text',
- 'settings' => array(),
- 'type' => 'text_default',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'comment',
- 'field_name' => 'comment_body',
- 'label' => 'Comment',
- 'required' => 1,
- 'settings' => array(
- 'text_processing' => 0,
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'active' => 1,
- 'module' => 'text',
- 'settings' => array(
- 'rows' => 5,
- ),
- 'type' => 'text_textarea',
- 'weight' => 0,
- ),
- );
- // Exported field_instance: 'node-article-body'.
- $field_instances['node-article-body'] = array(
- 'bundle' => 'article',
- 'default_value' => NULL,
- 'deleted' => 0,
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'hidden',
- 'module' => 'text',
- 'settings' => array(),
- 'type' => 'text_default',
- 'weight' => 2,
- ),
- 'teaser' => array(
- 'label' => 'hidden',
- 'module' => 'text',
- 'settings' => array(
- 'trim_length' => 600,
- ),
- 'type' => 'text_summary_or_trimmed',
- 'weight' => 2,
- ),
- ),
- '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' => 2,
- ),
- );
- // Exported field_instance: 'node-article-field_image'.
- $field_instances['node-article-field_image'] = array(
- 'bundle' => 'article',
- 'deleted' => 0,
- 'description' => 'Transférer une image pour accompagner cet article.',
- 'display' => array(
- 'default' => array(
- 'label' => 'hidden',
- 'module' => 'image',
- 'settings' => array(
- 'image_link' => '',
- 'image_style' => 'large',
- ),
- 'type' => 'image',
- 'weight' => 1,
- ),
- 'teaser' => array(
- 'label' => 'hidden',
- 'module' => 'image',
- 'settings' => array(
- 'image_link' => 'content',
- 'image_style' => 'medium',
- ),
- 'type' => 'image',
- 'weight' => 1,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_image',
- 'label' => 'Image',
- 'required' => 0,
- 'settings' => array(
- 'alt_field' => 1,
- 'default_image' => 0,
- 'file_directory' => 'field/image',
- 'file_extensions' => 'png gif jpg jpeg',
- 'max_filesize' => '',
- 'max_resolution' => '',
- 'min_resolution' => '',
- 'title_field' => 1,
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'active' => 1,
- 'module' => 'image',
- 'settings' => array(
- 'preview_image_style' => 'thumbnail',
- 'progress_indicator' => 'throbber',
- ),
- 'type' => 'image_image',
- 'weight' => 4,
- ),
- );
- // Exported field_instance: 'node-article-field_images'.
- $field_instances['node-article-field_images'] = array(
- 'bundle' => 'article',
- 'deleted' => 0,
- 'description' => '',
- 'display' => array(
- 'default' => array(
- 'label' => 'hidden',
- 'module' => 'image',
- 'settings' => array(
- 'image_link' => 'file',
- 'image_style' => 'medium',
- ),
- 'type' => 'image',
- 'weight' => 3,
- ),
- 'teaser' => array(
- 'label' => 'above',
- 'settings' => array(),
- 'type' => 'hidden',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_images',
- 'label' => 'Images',
- 'required' => 0,
- 'settings' => array(
- 'alt_field' => 0,
- 'default_image' => 0,
- 'file_directory' => 'article/images',
- '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' => 5,
- ),
- );
- // Exported field_instance: 'node-article-field_tags'.
- $field_instances['node-article-field_tags'] = array(
- 'bundle' => 'article',
- 'default_value' => NULL,
- 'deleted' => 0,
- 'description' => 'Saisissez une liste de mots séparés par des virgules pour décrire votre contenu.',
- 'display' => array(
- 'default' => array(
- 'label' => 'inline',
- 'module' => 'taxonomy',
- 'settings' => array(),
- 'type' => 'taxonomy_term_reference_link',
- 'weight' => 0,
- ),
- 'teaser' => array(
- 'label' => 'inline',
- 'module' => 'taxonomy',
- 'settings' => array(),
- 'type' => 'taxonomy_term_reference_link',
- 'weight' => 0,
- ),
- ),
- 'entity_type' => 'node',
- 'field_name' => 'field_tags',
- 'label' => 'Tags',
- 'required' => FALSE,
- 'settings' => array(
- 'user_register_form' => FALSE,
- ),
- 'widget' => array(
- 'module' => 'taxonomy',
- 'settings' => array(
- 'autocomplete_path' => 'taxonomy/autocomplete',
- 'size' => 60,
- ),
- 'type' => 'taxonomy_autocomplete',
- 'weight' => 3,
- ),
- );
- // Translatables
- // Included for use with string extractors like potx.
- t('Body');
- t('Comment');
- t('Image');
- t('Images');
- t('Saisissez une liste de mots séparés par des virgules pour décrire votre contenu.');
- t('Tags');
- t('Transférer une image pour accompagner cet article.');
- return $field_instances;
- }
|