popsu_pages_neutres.features.field.inc 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. <?php
  2. /**
  3. * @file
  4. * popsu_pages_neutres.features.field.inc
  5. */
  6. /**
  7. * Implements hook_field_default_fields().
  8. */
  9. function popsu_pages_neutres_field_default_fields() {
  10. $fields = array();
  11. // Exported field: 'node-popsu_page_neutral-field_popsu_pageneutral_body'.
  12. $fields['node-popsu_page_neutral-field_popsu_pageneutral_body'] = array(
  13. 'field_config' => array(
  14. 'active' => '1',
  15. 'cardinality' => '1',
  16. 'deleted' => '0',
  17. 'entity_types' => array(),
  18. 'field_name' => 'field_popsu_pageneutral_body',
  19. 'foreign keys' => array(
  20. 'format' => array(
  21. 'columns' => array(
  22. 'format' => 'format',
  23. ),
  24. 'table' => 'filter_format',
  25. ),
  26. ),
  27. 'indexes' => array(
  28. 'format' => array(
  29. 0 => 'format',
  30. ),
  31. ),
  32. 'locked' => '0',
  33. 'module' => 'text',
  34. 'settings' => array(),
  35. 'translatable' => '0',
  36. 'type' => 'text_with_summary',
  37. ),
  38. 'field_instance' => array(
  39. 'bundle' => 'popsu_page_neutral',
  40. 'default_value' => NULL,
  41. 'deleted' => '0',
  42. 'description' => '',
  43. 'display' => array(
  44. 'default' => array(
  45. 'label' => 'above',
  46. 'module' => 'text',
  47. 'settings' => array(),
  48. 'type' => 'text_default',
  49. 'weight' => 1,
  50. ),
  51. 'teaser' => array(
  52. 'label' => 'above',
  53. 'settings' => array(),
  54. 'type' => 'hidden',
  55. 'weight' => 0,
  56. ),
  57. ),
  58. 'entity_type' => 'node',
  59. 'field_name' => 'field_popsu_pageneutral_body',
  60. 'label' => 'Texte de la page',
  61. 'required' => 0,
  62. 'settings' => array(
  63. 'display_summary' => 0,
  64. 'text_processing' => '1',
  65. 'user_register_form' => FALSE,
  66. ),
  67. 'widget' => array(
  68. 'active' => 1,
  69. 'module' => 'text',
  70. 'settings' => array(
  71. 'rows' => '20',
  72. 'summary_rows' => 5,
  73. ),
  74. 'type' => 'text_textarea_with_summary',
  75. 'weight' => '5',
  76. ),
  77. ),
  78. );
  79. // Exported field: 'node-popsu_page_neutral-field_popsu_pageneutral_col2'.
  80. $fields['node-popsu_page_neutral-field_popsu_pageneutral_col2'] = array(
  81. 'field_config' => array(
  82. 'active' => '1',
  83. 'cardinality' => '1',
  84. 'deleted' => '0',
  85. 'entity_types' => array(),
  86. 'field_name' => 'field_popsu_pageneutral_col2',
  87. 'foreign keys' => array(
  88. 'format' => array(
  89. 'columns' => array(
  90. 'format' => 'format',
  91. ),
  92. 'table' => 'filter_format',
  93. ),
  94. ),
  95. 'indexes' => array(
  96. 'format' => array(
  97. 0 => 'format',
  98. ),
  99. ),
  100. 'locked' => '0',
  101. 'module' => 'text',
  102. 'settings' => array(),
  103. 'translatable' => '0',
  104. 'type' => 'text_long',
  105. ),
  106. 'field_instance' => array(
  107. 'bundle' => 'popsu_page_neutral',
  108. 'default_value' => NULL,
  109. 'deleted' => '0',
  110. 'description' => '',
  111. 'display' => array(
  112. 'default' => array(
  113. 'label' => 'above',
  114. 'module' => 'text',
  115. 'settings' => array(),
  116. 'type' => 'text_default',
  117. 'weight' => 2,
  118. ),
  119. 'teaser' => array(
  120. 'label' => 'above',
  121. 'settings' => array(),
  122. 'type' => 'hidden',
  123. 'weight' => 0,
  124. ),
  125. ),
  126. 'entity_type' => 'node',
  127. 'field_name' => 'field_popsu_pageneutral_col2',
  128. 'label' => 'Texte de la 2ème colone',
  129. 'required' => 0,
  130. 'settings' => array(
  131. 'text_processing' => '1',
  132. 'user_register_form' => FALSE,
  133. ),
  134. 'widget' => array(
  135. 'active' => 1,
  136. 'module' => 'text',
  137. 'settings' => array(
  138. 'rows' => '5',
  139. ),
  140. 'type' => 'text_textarea',
  141. 'weight' => '6',
  142. ),
  143. ),
  144. );
  145. // Exported field: 'node-popsu_page_neutral-field_popsu_pageneutral_mepage'.
  146. $fields['node-popsu_page_neutral-field_popsu_pageneutral_mepage'] = array(
  147. 'field_config' => array(
  148. 'active' => '1',
  149. 'cardinality' => '1',
  150. 'deleted' => '0',
  151. 'entity_types' => array(),
  152. 'field_name' => 'field_popsu_pageneutral_mepage',
  153. 'foreign keys' => array(),
  154. 'indexes' => array(
  155. 'value' => array(
  156. 0 => 'value',
  157. ),
  158. ),
  159. 'locked' => '0',
  160. 'module' => 'list',
  161. 'settings' => array(
  162. 'allowed_values' => array(
  163. 0 => 'sur 1 colonne',
  164. 1 => 'sur 2 colonnes',
  165. ),
  166. 'allowed_values_function' => '',
  167. ),
  168. 'translatable' => '0',
  169. 'type' => 'list_boolean',
  170. ),
  171. 'field_instance' => array(
  172. 'bundle' => 'popsu_page_neutral',
  173. 'default_value' => array(
  174. 0 => array(
  175. 'value' => '0',
  176. ),
  177. ),
  178. 'deleted' => '0',
  179. 'description' => '',
  180. 'display' => array(
  181. 'default' => array(
  182. 'label' => 'above',
  183. 'module' => 'list',
  184. 'settings' => array(),
  185. 'type' => 'list_default',
  186. 'weight' => 3,
  187. ),
  188. 'teaser' => array(
  189. 'label' => 'above',
  190. 'settings' => array(),
  191. 'type' => 'hidden',
  192. 'weight' => 0,
  193. ),
  194. ),
  195. 'entity_type' => 'node',
  196. 'field_name' => 'field_popsu_pageneutral_mepage',
  197. 'label' => 'Mise en page',
  198. 'required' => 1,
  199. 'settings' => array(
  200. 'user_register_form' => FALSE,
  201. ),
  202. 'widget' => array(
  203. 'active' => 1,
  204. 'module' => 'options',
  205. 'settings' => array(),
  206. 'type' => 'options_buttons',
  207. 'weight' => '4',
  208. ),
  209. ),
  210. );
  211. // Translatables
  212. // Included for use with string extractors like potx.
  213. t('Mise en page');
  214. t('Texte de la 2ème colone');
  215. t('Texte de la page');
  216. return $fields;
  217. }