popsu_special_pages.features.field.inc 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <?php
  2. /**
  3. * @file
  4. * popsu_special_pages.features.field.inc
  5. */
  6. /**
  7. * Implements hook_field_default_fields().
  8. */
  9. function popsu_special_pages_field_default_fields() {
  10. $fields = array();
  11. // Exported field: 'node-popsu_special-field_popsu_special_body'.
  12. $fields['node-popsu_special-field_popsu_special_body'] = array(
  13. 'field_config' => array(
  14. 'active' => '1',
  15. 'cardinality' => '1',
  16. 'deleted' => '0',
  17. 'entity_types' => array(),
  18. 'field_name' => 'field_popsu_special_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_special',
  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' => '0',
  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_special_body',
  60. 'label' => 'Texte d\'introduction',
  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' => '2',
  76. ),
  77. ),
  78. );
  79. // Exported field: 'node-popsu_special-field_popsu_special_text'.
  80. $fields['node-popsu_special-field_popsu_special_text'] = array(
  81. 'field_config' => array(
  82. 'active' => '1',
  83. 'cardinality' => '1',
  84. 'deleted' => '0',
  85. 'entity_types' => array(),
  86. 'field_name' => 'field_popsu_special_text',
  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_special',
  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' => 3,
  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_special_text',
  128. 'label' => 'Texte long',
  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' => '10',
  139. ),
  140. 'type' => 'text_textarea',
  141. 'weight' => '3',
  142. ),
  143. ),
  144. );
  145. // Exported field: 'node-popsu_special-field_popsu_special_typetaxo'.
  146. $fields['node-popsu_special-field_popsu_special_typetaxo'] = array(
  147. 'field_config' => array(
  148. 'active' => '1',
  149. 'cardinality' => '1',
  150. 'deleted' => '0',
  151. 'entity_types' => array(),
  152. 'field_name' => 'field_popsu_special_typetaxo',
  153. 'foreign keys' => array(
  154. 'tid' => array(
  155. 'columns' => array(
  156. 'tid' => 'tid',
  157. ),
  158. 'table' => 'taxonomy_term_data',
  159. ),
  160. ),
  161. 'indexes' => array(
  162. 'tid' => array(
  163. 0 => 'tid',
  164. ),
  165. ),
  166. 'locked' => '0',
  167. 'module' => 'taxonomy',
  168. 'settings' => array(
  169. 'allowed_values' => array(
  170. 0 => array(
  171. 'vocabulary' => 'popsu_special_taxonomy',
  172. 'parent' => '0',
  173. ),
  174. ),
  175. 'options_list_callback' => 'i18n_taxonomy_allowed_values',
  176. ),
  177. 'translatable' => '0',
  178. 'type' => 'taxonomy_term_reference',
  179. ),
  180. 'field_instance' => array(
  181. 'bundle' => 'popsu_special',
  182. 'default_value' => NULL,
  183. 'deleted' => '0',
  184. 'description' => '',
  185. 'display' => array(
  186. 'default' => array(
  187. 'label' => 'above',
  188. 'settings' => array(),
  189. 'type' => 'hidden',
  190. 'weight' => '2',
  191. ),
  192. 'teaser' => array(
  193. 'label' => 'above',
  194. 'settings' => array(),
  195. 'type' => 'hidden',
  196. 'weight' => 0,
  197. ),
  198. ),
  199. 'entity_type' => 'node',
  200. 'field_name' => 'field_popsu_special_typetaxo',
  201. 'label' => 'Type de page spéciale',
  202. 'required' => 1,
  203. 'settings' => array(
  204. 'user_register_form' => FALSE,
  205. ),
  206. 'widget' => array(
  207. 'active' => 1,
  208. 'module' => 'options',
  209. 'settings' => array(),
  210. 'type' => 'options_select',
  211. 'weight' => '1',
  212. ),
  213. ),
  214. );
  215. // Translatables
  216. // Included for use with string extractors like potx.
  217. t('Texte d\'introduction');
  218. t('Texte long');
  219. t('Type de page spéciale');
  220. return $fields;
  221. }