popsu_colloques.features.field.inc 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. <?php
  2. /**
  3. * @file
  4. * popsu_colloques.features.field.inc
  5. */
  6. /**
  7. * Implements hook_field_default_fields().
  8. */
  9. function popsu_colloques_field_default_fields() {
  10. $fields = array();
  11. // Exported field: 'node-popsu_colloque-field_popsu_colloque_body'.
  12. $fields['node-popsu_colloque-field_popsu_colloque_body'] = array(
  13. 'field_config' => array(
  14. 'active' => '1',
  15. 'cardinality' => '1',
  16. 'deleted' => '0',
  17. 'entity_types' => array(),
  18. 'field_name' => 'field_popsu_colloque_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_colloque',
  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_colloque_body',
  60. 'label' => 'Texte de présentation du colloque',
  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' => '40',
  72. 'summary_rows' => 5,
  73. ),
  74. 'type' => 'text_textarea_with_summary',
  75. 'weight' => '2',
  76. ),
  77. ),
  78. );
  79. // Exported field: 'node-popsu_colloque-field_popsu_colloque_imageintro'.
  80. $fields['node-popsu_colloque-field_popsu_colloque_imageintro'] = array(
  81. 'field_config' => array(
  82. 'active' => '1',
  83. 'cardinality' => '-1',
  84. 'deleted' => '0',
  85. 'entity_types' => array(),
  86. 'field_name' => 'field_popsu_colloque_imageintro',
  87. 'foreign keys' => array(
  88. 'fid' => array(
  89. 'columns' => array(
  90. 'fid' => 'fid',
  91. ),
  92. 'table' => 'file_managed',
  93. ),
  94. ),
  95. 'indexes' => array(
  96. 'fid' => array(
  97. 0 => 'fid',
  98. ),
  99. ),
  100. 'locked' => '0',
  101. 'module' => 'image',
  102. 'settings' => array(
  103. 'default_image' => 0,
  104. 'uri_scheme' => 'public',
  105. ),
  106. 'translatable' => '0',
  107. 'type' => 'image',
  108. ),
  109. 'field_instance' => array(
  110. 'bundle' => 'popsu_colloque',
  111. 'deleted' => '0',
  112. 'description' => '',
  113. 'display' => array(
  114. 'default' => array(
  115. 'label' => 'above',
  116. 'module' => 'image',
  117. 'settings' => array(
  118. 'image_link' => '',
  119. 'image_style' => '',
  120. ),
  121. 'type' => 'image',
  122. 'weight' => '2',
  123. ),
  124. 'teaser' => array(
  125. 'label' => 'above',
  126. 'settings' => array(),
  127. 'type' => 'hidden',
  128. 'weight' => 0,
  129. ),
  130. ),
  131. 'entity_type' => 'node',
  132. 'field_name' => 'field_popsu_colloque_imageintro',
  133. 'label' => 'Image d\'introduction',
  134. 'required' => 0,
  135. 'settings' => array(
  136. 'alt_field' => 0,
  137. 'default_image' => 0,
  138. 'file_directory' => '',
  139. 'file_extensions' => 'png gif jpg jpeg',
  140. 'filefield_paths' => array(
  141. 'active_updating' => 0,
  142. 'file_name' => array(
  143. 'options' => array(
  144. 'pathauto' => 1,
  145. 'transliterate' => 1,
  146. ),
  147. 'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
  148. ),
  149. 'file_path' => array(
  150. 'options' => array(
  151. 'pathauto' => 1,
  152. 'transliterate' => 1,
  153. ),
  154. 'value' => 'nodes/[node:content-type]/[node:nid]/imageintro',
  155. ),
  156. 'retroactive_update' => 0,
  157. ),
  158. 'max_filesize' => '',
  159. 'max_resolution' => '',
  160. 'min_resolution' => '',
  161. 'title_field' => 1,
  162. 'user_register_form' => FALSE,
  163. ),
  164. 'widget' => array(
  165. 'active' => 1,
  166. 'module' => 'image',
  167. 'settings' => array(
  168. 'preview_image_style' => 'thumbnail',
  169. 'progress_indicator' => 'throbber',
  170. ),
  171. 'type' => 'image_image',
  172. 'weight' => '3',
  173. ),
  174. ),
  175. );
  176. // Exported field: 'node-popsu_colloque-field_popsu_colloque_subtitle'.
  177. $fields['node-popsu_colloque-field_popsu_colloque_subtitle'] = array(
  178. 'field_config' => array(
  179. 'active' => '1',
  180. 'cardinality' => '1',
  181. 'deleted' => '0',
  182. 'entity_types' => array(),
  183. 'field_name' => 'field_popsu_colloque_subtitle',
  184. 'foreign keys' => array(
  185. 'format' => array(
  186. 'columns' => array(
  187. 'format' => 'format',
  188. ),
  189. 'table' => 'filter_format',
  190. ),
  191. ),
  192. 'indexes' => array(
  193. 'format' => array(
  194. 0 => 'format',
  195. ),
  196. ),
  197. 'locked' => '0',
  198. 'module' => 'text',
  199. 'settings' => array(
  200. 'max_length' => '255',
  201. ),
  202. 'translatable' => '0',
  203. 'type' => 'text',
  204. ),
  205. 'field_instance' => array(
  206. 'bundle' => 'popsu_colloque',
  207. 'default_value' => NULL,
  208. 'deleted' => '0',
  209. 'description' => '',
  210. 'display' => array(
  211. 'default' => array(
  212. 'label' => 'above',
  213. 'module' => 'text',
  214. 'settings' => array(),
  215. 'type' => 'text_default',
  216. 'weight' => '0',
  217. ),
  218. 'teaser' => array(
  219. 'label' => 'above',
  220. 'settings' => array(),
  221. 'type' => 'hidden',
  222. 'weight' => 0,
  223. ),
  224. ),
  225. 'entity_type' => 'node',
  226. 'field_name' => 'field_popsu_colloque_subtitle',
  227. 'label' => 'Sous-titre',
  228. 'required' => 0,
  229. 'settings' => array(
  230. 'text_processing' => '0',
  231. 'user_register_form' => FALSE,
  232. ),
  233. 'widget' => array(
  234. 'active' => 1,
  235. 'module' => 'text',
  236. 'settings' => array(
  237. 'size' => '60',
  238. ),
  239. 'type' => 'text_textfield',
  240. 'weight' => '3',
  241. ),
  242. ),
  243. );
  244. // Exported field: 'node-popsu_colloque-field_popsu_colloque_subtitle2'.
  245. $fields['node-popsu_colloque-field_popsu_colloque_subtitle2'] = array(
  246. 'field_config' => array(
  247. 'active' => '1',
  248. 'cardinality' => '1',
  249. 'deleted' => '0',
  250. 'entity_types' => array(),
  251. 'field_name' => 'field_popsu_colloque_subtitle2',
  252. 'foreign keys' => array(
  253. 'format' => array(
  254. 'columns' => array(
  255. 'format' => 'format',
  256. ),
  257. 'table' => 'filter_format',
  258. ),
  259. ),
  260. 'indexes' => array(
  261. 'format' => array(
  262. 0 => 'format',
  263. ),
  264. ),
  265. 'locked' => '0',
  266. 'module' => 'text',
  267. 'settings' => array(),
  268. 'translatable' => '0',
  269. 'type' => 'text_long',
  270. ),
  271. 'field_instance' => array(
  272. 'bundle' => 'popsu_colloque',
  273. 'default_value' => NULL,
  274. 'deleted' => '0',
  275. 'description' => '',
  276. 'display' => array(
  277. 'default' => array(
  278. 'label' => 'above',
  279. 'module' => 'text',
  280. 'settings' => array(),
  281. 'type' => 'text_default',
  282. 'weight' => 5,
  283. ),
  284. 'teaser' => array(
  285. 'label' => 'above',
  286. 'settings' => array(),
  287. 'type' => 'hidden',
  288. 'weight' => 0,
  289. ),
  290. ),
  291. 'entity_type' => 'node',
  292. 'field_name' => 'field_popsu_colloque_subtitle2',
  293. 'label' => 'Sous-titre',
  294. 'required' => 0,
  295. 'settings' => array(
  296. 'text_processing' => '1',
  297. 'user_register_form' => FALSE,
  298. ),
  299. 'widget' => array(
  300. 'active' => 1,
  301. 'module' => 'text',
  302. 'settings' => array(
  303. 'rows' => '5',
  304. ),
  305. 'type' => 'text_textarea',
  306. 'weight' => '4',
  307. ),
  308. ),
  309. );
  310. // Translatables
  311. // Included for use with string extractors like potx.
  312. t('Image d\'introduction');
  313. t('Sous-titre');
  314. t('Texte de présentation du colloque');
  315. return $fields;
  316. }