materio_publications.features.field_instance.inc 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267
  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' => 'publication-couv',
  133. ),
  134. 'type' => 'image',
  135. 'weight' => 0,
  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. // Exported field_instance: 'node-publication-field_weight'.
  182. $field_instances['node-publication-field_weight'] = array(
  183. 'bundle' => 'publication',
  184. 'default_value' => NULL,
  185. 'deleted' => 0,
  186. 'description' => '',
  187. 'display' => array(
  188. 'bookmark' => array(
  189. 'label' => 'above',
  190. 'settings' => array(),
  191. 'type' => 'hidden',
  192. 'weight' => 0,
  193. ),
  194. 'cardbig' => array(
  195. 'label' => 'above',
  196. 'settings' => array(),
  197. 'type' => 'hidden',
  198. 'weight' => 0,
  199. ),
  200. 'cardfull' => array(
  201. 'label' => 'above',
  202. 'settings' => array(),
  203. 'type' => 'hidden',
  204. 'weight' => 0,
  205. ),
  206. 'cardmedium' => array(
  207. 'label' => 'above',
  208. 'settings' => array(),
  209. 'type' => 'hidden',
  210. 'weight' => 0,
  211. ),
  212. 'cardsmall' => array(
  213. 'label' => 'above',
  214. 'settings' => array(),
  215. 'type' => 'hidden',
  216. 'weight' => 0,
  217. ),
  218. 'default' => array(
  219. 'label' => 'above',
  220. 'settings' => array(),
  221. 'type' => 'hidden',
  222. 'weight' => 2,
  223. ),
  224. 'homeblock' => array(
  225. 'label' => 'above',
  226. 'settings' => array(),
  227. 'type' => 'hidden',
  228. 'weight' => 0,
  229. ),
  230. 'teaser' => array(
  231. 'label' => 'above',
  232. 'settings' => array(),
  233. 'type' => 'hidden',
  234. 'weight' => 0,
  235. ),
  236. ),
  237. 'entity_type' => 'node',
  238. 'field_name' => 'field_weight',
  239. 'label' => 'weight',
  240. 'required' => 0,
  241. 'settings' => array(
  242. 'entity_translation_sync' => FALSE,
  243. 'user_register_form' => FALSE,
  244. ),
  245. 'widget' => array(
  246. 'active' => 1,
  247. 'module' => 'options',
  248. 'settings' => array(
  249. 'content_taxonomy_opt_groups' => FALSE,
  250. ),
  251. 'type' => 'options_select',
  252. 'weight' => 9,
  253. ),
  254. );
  255. // Translatables
  256. // Included for use with string extractors like potx.
  257. t('Body');
  258. t('Couverture');
  259. t('weight');
  260. return $field_instances;
  261. }