materio_publications.features.field_instance.inc 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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. 'homeblock' => array(
  56. 'label' => 'above',
  57. 'settings' => array(),
  58. 'type' => 'hidden',
  59. 'weight' => 3,
  60. ),
  61. 'teaser' => array(
  62. 'label' => 'hidden',
  63. 'module' => 'text',
  64. 'settings' => array(
  65. 'trim_length' => 600,
  66. ),
  67. 'type' => 'text_summary_or_trimmed',
  68. 'weight' => 0,
  69. ),
  70. ),
  71. 'entity_type' => 'node',
  72. 'field_name' => 'body',
  73. 'label' => 'Body',
  74. 'required' => FALSE,
  75. 'settings' => array(
  76. 'display_summary' => TRUE,
  77. 'entity_translation_sync' => FALSE,
  78. 'text_processing' => 1,
  79. 'user_register_form' => FALSE,
  80. ),
  81. 'widget' => array(
  82. 'module' => 'text',
  83. 'settings' => array(
  84. 'rows' => 20,
  85. 'summary_rows' => 5,
  86. ),
  87. 'type' => 'text_textarea_with_summary',
  88. 'weight' => 1,
  89. ),
  90. );
  91. // Exported field_instance: 'node-publication-field_couverture'
  92. $field_instances['node-publication-field_couverture'] = array(
  93. 'bundle' => 'publication',
  94. 'deleted' => 0,
  95. 'description' => '',
  96. 'display' => array(
  97. 'bookmark' => array(
  98. 'label' => 'above',
  99. 'settings' => array(),
  100. 'type' => 'hidden',
  101. 'weight' => 0,
  102. ),
  103. 'cardbig' => array(
  104. 'label' => 'above',
  105. 'settings' => array(),
  106. 'type' => 'hidden',
  107. 'weight' => 0,
  108. ),
  109. 'cardfull' => array(
  110. 'label' => 'above',
  111. 'settings' => array(),
  112. 'type' => 'hidden',
  113. 'weight' => 0,
  114. ),
  115. 'cardmedium' => array(
  116. 'label' => 'above',
  117. 'settings' => array(),
  118. 'type' => 'hidden',
  119. 'weight' => 0,
  120. ),
  121. 'cardsmall' => array(
  122. 'label' => 'above',
  123. 'settings' => array(),
  124. 'type' => 'hidden',
  125. 'weight' => 0,
  126. ),
  127. 'default' => array(
  128. 'label' => 'hidden',
  129. 'module' => 'image',
  130. 'settings' => array(
  131. 'image_link' => '',
  132. 'image_style' => 'large',
  133. ),
  134. 'type' => 'image',
  135. 'weight' => 2,
  136. ),
  137. 'homeblock' => array(
  138. 'label' => 'hidden',
  139. 'module' => 'image',
  140. 'settings' => array(
  141. 'image_link' => 'content',
  142. 'image_style' => 'publications-home',
  143. ),
  144. 'type' => 'image',
  145. 'weight' => 0,
  146. ),
  147. 'teaser' => array(
  148. 'label' => 'above',
  149. 'settings' => array(),
  150. 'type' => 'hidden',
  151. 'weight' => 0,
  152. ),
  153. ),
  154. 'entity_type' => 'node',
  155. 'field_name' => 'field_couverture',
  156. 'label' => 'Couverture',
  157. 'required' => 0,
  158. 'settings' => array(
  159. 'alt_field' => 0,
  160. 'default_image' => 0,
  161. 'entity_translation_sync' => FALSE,
  162. 'file_directory' => '',
  163. 'file_extensions' => 'png gif jpg jpeg',
  164. 'max_filesize' => '',
  165. 'max_resolution' => '',
  166. 'min_resolution' => '',
  167. 'title_field' => 0,
  168. 'user_register_form' => FALSE,
  169. ),
  170. 'widget' => array(
  171. 'active' => 1,
  172. 'module' => 'image',
  173. 'settings' => array(
  174. 'preview_image_style' => 'thumbnail',
  175. 'progress_indicator' => 'throbber',
  176. ),
  177. 'type' => 'image_image',
  178. 'weight' => 2,
  179. ),
  180. );
  181. // Translatables
  182. // Included for use with string extractors like potx.
  183. t('Body');
  184. t('Couverture');
  185. return $field_instances;
  186. }