ffdn_article.features.field_instance.inc 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <?php
  2. /**
  3. * @file
  4. * ffdn_article.features.field_instance.inc
  5. */
  6. /**
  7. * Implements hook_field_default_field_instances().
  8. */
  9. function ffdn_article_field_default_field_instances() {
  10. $field_instances = array();
  11. // Exported field_instance: 'node-article-body'.
  12. $field_instances['node-article-body'] = array(
  13. 'bundle' => 'article',
  14. 'default_value' => NULL,
  15. 'deleted' => 0,
  16. 'description' => '',
  17. 'display' => array(
  18. 'default' => array(
  19. 'label' => 'hidden',
  20. 'module' => 'text',
  21. 'settings' => array(),
  22. 'type' => 'text_default',
  23. 'weight' => 2,
  24. ),
  25. 'teaser' => array(
  26. 'label' => 'hidden',
  27. 'module' => 'text',
  28. 'settings' => array(
  29. 'trim_length' => 600,
  30. ),
  31. 'type' => 'text_summary_or_trimmed',
  32. 'weight' => 2,
  33. ),
  34. ),
  35. 'entity_type' => 'node',
  36. 'field_name' => 'body',
  37. 'label' => 'Body',
  38. 'required' => FALSE,
  39. 'settings' => array(
  40. 'display_summary' => TRUE,
  41. 'text_processing' => 1,
  42. 'user_register_form' => FALSE,
  43. ),
  44. 'widget' => array(
  45. 'module' => 'text',
  46. 'settings' => array(
  47. 'rows' => 20,
  48. 'summary_rows' => 5,
  49. ),
  50. 'type' => 'text_textarea_with_summary',
  51. 'weight' => -4,
  52. ),
  53. );
  54. // Exported field_instance: 'node-article-field_image'.
  55. $field_instances['node-article-field_image'] = array(
  56. 'bundle' => 'article',
  57. 'deleted' => 0,
  58. 'description' => 'Transférer une image pour accompagner cet article.',
  59. 'display' => array(
  60. 'default' => array(
  61. 'label' => 'hidden',
  62. 'module' => 'image',
  63. 'settings' => array(
  64. 'image_link' => '',
  65. 'image_style' => 'large',
  66. ),
  67. 'type' => 'image',
  68. 'weight' => 1,
  69. ),
  70. 'teaser' => array(
  71. 'label' => 'hidden',
  72. 'module' => 'image',
  73. 'settings' => array(
  74. 'image_link' => 'content',
  75. 'image_style' => 'medium',
  76. ),
  77. 'type' => 'image',
  78. 'weight' => 1,
  79. ),
  80. ),
  81. 'entity_type' => 'node',
  82. 'field_name' => 'field_image',
  83. 'label' => 'Image',
  84. 'required' => FALSE,
  85. 'settings' => array(
  86. 'alt_field' => TRUE,
  87. 'default_image' => 0,
  88. 'file_directory' => 'field/image',
  89. 'file_extensions' => 'png gif jpg jpeg',
  90. 'max_filesize' => '',
  91. 'max_resolution' => '',
  92. 'min_resolution' => '',
  93. 'title_field' => '',
  94. 'user_register_form' => FALSE,
  95. ),
  96. 'widget' => array(
  97. 'module' => 'image',
  98. 'settings' => array(
  99. 'preview_image_style' => 'thumbnail',
  100. 'progress_indicator' => 'throbber',
  101. ),
  102. 'type' => 'image_image',
  103. 'weight' => -1,
  104. ),
  105. );
  106. // Exported field_instance: 'node-article-field_tags'.
  107. $field_instances['node-article-field_tags'] = array(
  108. 'bundle' => 'article',
  109. 'default_value' => NULL,
  110. 'deleted' => 0,
  111. 'description' => 'Saisissez une liste de mots séparés par des virgules pour décrire votre contenu.',
  112. 'display' => array(
  113. 'default' => array(
  114. 'label' => 'inline',
  115. 'module' => 'taxonomy',
  116. 'settings' => array(),
  117. 'type' => 'taxonomy_term_reference_link',
  118. 'weight' => 0,
  119. ),
  120. 'teaser' => array(
  121. 'label' => 'inline',
  122. 'module' => 'taxonomy',
  123. 'settings' => array(),
  124. 'type' => 'taxonomy_term_reference_link',
  125. 'weight' => 0,
  126. ),
  127. ),
  128. 'entity_type' => 'node',
  129. 'field_name' => 'field_tags',
  130. 'label' => 'Tags',
  131. 'required' => FALSE,
  132. 'settings' => array(
  133. 'user_register_form' => FALSE,
  134. ),
  135. 'widget' => array(
  136. 'module' => 'taxonomy',
  137. 'settings' => array(
  138. 'autocomplete_path' => 'taxonomy/autocomplete',
  139. 'size' => 60,
  140. ),
  141. 'type' => 'taxonomy_autocomplete',
  142. 'weight' => -4,
  143. ),
  144. );
  145. // Translatables
  146. // Included for use with string extractors like potx.
  147. t('Body');
  148. t('Image');
  149. t('Saisissez une liste de mots séparés par des virgules pour décrire votre contenu.');
  150. t('Tags');
  151. t('Transférer une image pour accompagner cet article.');
  152. return $field_instances;
  153. }