materio_publications.features.field_instance.inc 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?php
  2. /**
  3. * @file
  4. * materio_publications.features.field_instance.inc
  5. */
  6. /**
  7. * Implements hook_field_default_field_instances().
  8. */
  9. function materio_publications_field_default_field_instances() {
  10. $field_instances = array();
  11. // Exported field_instance: 'node-publication-body'
  12. $field_instances['node-publication-body'] = array(
  13. 'bundle' => 'publication',
  14. 'default_value' => NULL,
  15. 'deleted' => 0,
  16. 'description' => '',
  17. 'display' => array(
  18. 'bookmark' => array(
  19. 'label' => 'above',
  20. 'settings' => array(),
  21. 'type' => 'hidden',
  22. 'weight' => 0,
  23. ),
  24. 'cardbig' => array(
  25. 'label' => 'above',
  26. 'settings' => array(),
  27. 'type' => 'hidden',
  28. 'weight' => 0,
  29. ),
  30. 'cardfull' => array(
  31. 'label' => 'above',
  32. 'settings' => array(),
  33. 'type' => 'hidden',
  34. 'weight' => 0,
  35. ),
  36. 'cardmedium' => array(
  37. 'label' => 'above',
  38. 'settings' => array(),
  39. 'type' => 'hidden',
  40. 'weight' => 0,
  41. ),
  42. 'cardsmall' => array(
  43. 'label' => 'above',
  44. 'settings' => array(),
  45. 'type' => 'hidden',
  46. 'weight' => 0,
  47. ),
  48. 'default' => array(
  49. 'label' => 'hidden',
  50. 'module' => 'text',
  51. 'settings' => array(),
  52. 'type' => 'text_default',
  53. 'weight' => 1,
  54. ),
  55. 'teaser' => array(
  56. 'label' => 'hidden',
  57. 'module' => 'text',
  58. 'settings' => array(
  59. 'trim_length' => 600,
  60. ),
  61. 'type' => 'text_summary_or_trimmed',
  62. 'weight' => 0,
  63. ),
  64. ),
  65. 'entity_type' => 'node',
  66. 'field_name' => 'body',
  67. 'label' => 'Body',
  68. 'required' => FALSE,
  69. 'settings' => array(
  70. 'display_summary' => TRUE,
  71. 'entity_translation_sync' => FALSE,
  72. 'text_processing' => 1,
  73. 'user_register_form' => FALSE,
  74. ),
  75. 'widget' => array(
  76. 'module' => 'text',
  77. 'settings' => array(
  78. 'rows' => 20,
  79. 'summary_rows' => 5,
  80. ),
  81. 'type' => 'text_textarea_with_summary',
  82. 'weight' => 1,
  83. ),
  84. );
  85. // Exported field_instance: 'node-publication-field_couverture'
  86. $field_instances['node-publication-field_couverture'] = array(
  87. 'bundle' => 'publication',
  88. 'deleted' => 0,
  89. 'description' => '',
  90. 'display' => array(
  91. 'bookmark' => array(
  92. 'label' => 'above',
  93. 'settings' => array(),
  94. 'type' => 'hidden',
  95. 'weight' => 0,
  96. ),
  97. 'cardbig' => array(
  98. 'label' => 'above',
  99. 'settings' => array(),
  100. 'type' => 'hidden',
  101. 'weight' => 0,
  102. ),
  103. 'cardfull' => array(
  104. 'label' => 'above',
  105. 'settings' => array(),
  106. 'type' => 'hidden',
  107. 'weight' => 0,
  108. ),
  109. 'cardmedium' => array(
  110. 'label' => 'above',
  111. 'settings' => array(),
  112. 'type' => 'hidden',
  113. 'weight' => 0,
  114. ),
  115. 'cardsmall' => array(
  116. 'label' => 'above',
  117. 'settings' => array(),
  118. 'type' => 'hidden',
  119. 'weight' => 0,
  120. ),
  121. 'default' => array(
  122. 'label' => 'hidden',
  123. 'module' => 'image',
  124. 'settings' => array(
  125. 'image_link' => '',
  126. 'image_style' => 'large',
  127. ),
  128. 'type' => 'image',
  129. 'weight' => 2,
  130. ),
  131. 'teaser' => array(
  132. 'label' => 'above',
  133. 'settings' => array(),
  134. 'type' => 'hidden',
  135. 'weight' => 0,
  136. ),
  137. ),
  138. 'entity_type' => 'node',
  139. 'field_name' => 'field_couverture',
  140. 'label' => 'Couverture',
  141. 'required' => 0,
  142. 'settings' => array(
  143. 'alt_field' => 0,
  144. 'default_image' => 0,
  145. 'entity_translation_sync' => FALSE,
  146. 'file_directory' => '',
  147. 'file_extensions' => 'png gif jpg jpeg',
  148. 'max_filesize' => '',
  149. 'max_resolution' => '',
  150. 'min_resolution' => '',
  151. 'title_field' => 0,
  152. 'user_register_form' => FALSE,
  153. ),
  154. 'widget' => array(
  155. 'active' => 1,
  156. 'module' => 'image',
  157. 'settings' => array(
  158. 'preview_image_style' => 'thumbnail',
  159. 'progress_indicator' => 'throbber',
  160. ),
  161. 'type' => 'image_image',
  162. 'weight' => 2,
  163. ),
  164. );
  165. // Translatables
  166. // Included for use with string extractors like potx.
  167. t('Body');
  168. t('Couverture');
  169. return $field_instances;
  170. }