ffdn_article.features.field_instance.inc 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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: 'comment-comment_node_article-comment_body'.
  12. $field_instances['comment-comment_node_article-comment_body'] = array(
  13. 'bundle' => 'comment_node_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' => 0,
  24. ),
  25. ),
  26. 'entity_type' => 'comment',
  27. 'field_name' => 'comment_body',
  28. 'label' => 'Comment',
  29. 'required' => 1,
  30. 'settings' => array(
  31. 'text_processing' => 0,
  32. 'user_register_form' => FALSE,
  33. ),
  34. 'widget' => array(
  35. 'active' => 1,
  36. 'module' => 'text',
  37. 'settings' => array(
  38. 'rows' => 5,
  39. ),
  40. 'type' => 'text_textarea',
  41. 'weight' => 0,
  42. ),
  43. );
  44. // Exported field_instance: 'node-article-body'.
  45. $field_instances['node-article-body'] = array(
  46. 'bundle' => 'article',
  47. 'default_value' => NULL,
  48. 'deleted' => 0,
  49. 'description' => '',
  50. 'display' => array(
  51. 'default' => array(
  52. 'label' => 'hidden',
  53. 'module' => 'text',
  54. 'settings' => array(),
  55. 'type' => 'text_default',
  56. 'weight' => 2,
  57. ),
  58. 'teaser' => array(
  59. 'label' => 'hidden',
  60. 'module' => 'text',
  61. 'settings' => array(
  62. 'trim_length' => 600,
  63. ),
  64. 'type' => 'text_summary_or_trimmed',
  65. 'weight' => 2,
  66. ),
  67. ),
  68. 'entity_type' => 'node',
  69. 'field_name' => 'body',
  70. 'label' => 'Body',
  71. 'required' => FALSE,
  72. 'settings' => array(
  73. 'display_summary' => TRUE,
  74. 'text_processing' => 1,
  75. 'user_register_form' => FALSE,
  76. ),
  77. 'widget' => array(
  78. 'module' => 'text',
  79. 'settings' => array(
  80. 'rows' => 20,
  81. 'summary_rows' => 5,
  82. ),
  83. 'type' => 'text_textarea_with_summary',
  84. 'weight' => -4,
  85. ),
  86. );
  87. // Exported field_instance: 'node-article-field_image'.
  88. $field_instances['node-article-field_image'] = array(
  89. 'bundle' => 'article',
  90. 'deleted' => 0,
  91. 'description' => 'Transférer une image pour accompagner cet article.',
  92. 'display' => array(
  93. 'default' => array(
  94. 'label' => 'hidden',
  95. 'module' => 'image',
  96. 'settings' => array(
  97. 'image_link' => '',
  98. 'image_style' => 'large',
  99. ),
  100. 'type' => 'image',
  101. 'weight' => 1,
  102. ),
  103. 'teaser' => array(
  104. 'label' => 'hidden',
  105. 'module' => 'image',
  106. 'settings' => array(
  107. 'image_link' => 'content',
  108. 'image_style' => 'medium',
  109. ),
  110. 'type' => 'image',
  111. 'weight' => 1,
  112. ),
  113. ),
  114. 'entity_type' => 'node',
  115. 'field_name' => 'field_image',
  116. 'label' => 'Image',
  117. 'required' => FALSE,
  118. 'settings' => array(
  119. 'alt_field' => TRUE,
  120. 'default_image' => 0,
  121. 'file_directory' => 'field/image',
  122. 'file_extensions' => 'png gif jpg jpeg',
  123. 'max_filesize' => '',
  124. 'max_resolution' => '',
  125. 'min_resolution' => '',
  126. 'title_field' => '',
  127. 'user_register_form' => FALSE,
  128. ),
  129. 'widget' => array(
  130. 'module' => 'image',
  131. 'settings' => array(
  132. 'preview_image_style' => 'thumbnail',
  133. 'progress_indicator' => 'throbber',
  134. ),
  135. 'type' => 'image_image',
  136. 'weight' => -1,
  137. ),
  138. );
  139. // Exported field_instance: 'node-article-field_tags'.
  140. $field_instances['node-article-field_tags'] = array(
  141. 'bundle' => 'article',
  142. 'default_value' => NULL,
  143. 'deleted' => 0,
  144. 'description' => 'Saisissez une liste de mots séparés par des virgules pour décrire votre contenu.',
  145. 'display' => array(
  146. 'default' => array(
  147. 'label' => 'inline',
  148. 'module' => 'taxonomy',
  149. 'settings' => array(),
  150. 'type' => 'taxonomy_term_reference_link',
  151. 'weight' => 0,
  152. ),
  153. 'teaser' => array(
  154. 'label' => 'inline',
  155. 'module' => 'taxonomy',
  156. 'settings' => array(),
  157. 'type' => 'taxonomy_term_reference_link',
  158. 'weight' => 0,
  159. ),
  160. ),
  161. 'entity_type' => 'node',
  162. 'field_name' => 'field_tags',
  163. 'label' => 'Tags',
  164. 'required' => FALSE,
  165. 'settings' => array(
  166. 'user_register_form' => FALSE,
  167. ),
  168. 'widget' => array(
  169. 'module' => 'taxonomy',
  170. 'settings' => array(
  171. 'autocomplete_path' => 'taxonomy/autocomplete',
  172. 'size' => 60,
  173. ),
  174. 'type' => 'taxonomy_autocomplete',
  175. 'weight' => -4,
  176. ),
  177. );
  178. // Translatables
  179. // Included for use with string extractors like potx.
  180. t('Body');
  181. t('Comment');
  182. t('Image');
  183. t('Saisissez une liste de mots séparés par des virgules pour décrire votre contenu.');
  184. t('Tags');
  185. t('Transférer une image pour accompagner cet article.');
  186. return $field_instances;
  187. }