popsu_actualites.features.field.inc 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. <?php
  2. /**
  3. * @file
  4. * popsu_actualites.features.field.inc
  5. */
  6. /**
  7. * Implements hook_field_default_fields().
  8. */
  9. function popsu_actualites_field_default_fields() {
  10. $fields = array();
  11. // Exported field: 'node-popsu_actu-field_popsu_actu_body'.
  12. $fields['node-popsu_actu-field_popsu_actu_body'] = array(
  13. 'field_config' => array(
  14. 'active' => '1',
  15. 'cardinality' => '1',
  16. 'deleted' => '0',
  17. 'entity_types' => array(),
  18. 'field_name' => 'field_popsu_actu_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_actu',
  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_actu_body',
  60. 'label' => 'Texte de l\'actualité',
  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' => '12',
  76. ),
  77. ),
  78. );
  79. // Exported field: 'node-popsu_actu-field_popsu_actu_date'.
  80. $fields['node-popsu_actu-field_popsu_actu_date'] = array(
  81. 'field_config' => array(
  82. 'active' => '1',
  83. 'cardinality' => '1',
  84. 'deleted' => '0',
  85. 'entity_types' => array(),
  86. 'field_name' => 'field_popsu_actu_date',
  87. 'foreign keys' => array(),
  88. 'indexes' => array(),
  89. 'locked' => '0',
  90. 'module' => 'date',
  91. 'settings' => array(
  92. 'cache_count' => '4',
  93. 'cache_enabled' => 0,
  94. 'granularity' => array(
  95. 'day' => 'day',
  96. 'hour' => 0,
  97. 'minute' => 0,
  98. 'month' => 'month',
  99. 'second' => 0,
  100. 'year' => 'year',
  101. ),
  102. 'timezone_db' => '',
  103. 'todate' => '',
  104. 'tz_handling' => 'none',
  105. ),
  106. 'translatable' => '0',
  107. 'type' => 'datetime',
  108. ),
  109. 'field_instance' => array(
  110. 'bundle' => 'popsu_actu',
  111. 'deleted' => '0',
  112. 'description' => 'Si vous souhaitez retarder la publication de cette actualité, choisissez une date dans le futur.',
  113. 'display' => array(
  114. 'default' => array(
  115. 'label' => 'above',
  116. 'module' => 'date',
  117. 'settings' => array(
  118. 'format_type' => 'long',
  119. 'fromto' => 'both',
  120. 'multiple_from' => '',
  121. 'multiple_number' => '',
  122. 'multiple_to' => '',
  123. ),
  124. 'type' => 'date_default',
  125. 'weight' => 2,
  126. ),
  127. 'teaser' => array(
  128. 'label' => 'above',
  129. 'settings' => array(),
  130. 'type' => 'hidden',
  131. 'weight' => 0,
  132. ),
  133. ),
  134. 'entity_type' => 'node',
  135. 'field_name' => 'field_popsu_actu_date',
  136. 'label' => 'Date de début de publication de l\'actualité sur la page d\'accueil',
  137. 'required' => 1,
  138. 'settings' => array(
  139. 'default_value' => 'now',
  140. 'default_value2' => 'same',
  141. 'default_value_code' => '',
  142. 'default_value_code2' => '',
  143. 'user_register_form' => FALSE,
  144. ),
  145. 'widget' => array(
  146. 'active' => 1,
  147. 'module' => 'date',
  148. 'settings' => array(
  149. 'increment' => '15',
  150. 'input_format' => 'd/m/Y - H:i:s',
  151. 'input_format_custom' => '',
  152. 'label_position' => 'above',
  153. 'text_parts' => array(),
  154. 'year_range' => '-3:+3',
  155. ),
  156. 'type' => 'date_popup',
  157. 'weight' => '8',
  158. ),
  159. ),
  160. );
  161. // Exported field: 'node-popsu_actu-field_popsu_actu_date_fin'.
  162. $fields['node-popsu_actu-field_popsu_actu_date_fin'] = array(
  163. 'field_config' => array(
  164. 'active' => '1',
  165. 'cardinality' => '1',
  166. 'deleted' => '0',
  167. 'entity_types' => array(),
  168. 'field_name' => 'field_popsu_actu_date_fin',
  169. 'foreign keys' => array(),
  170. 'indexes' => array(),
  171. 'locked' => '0',
  172. 'module' => 'date',
  173. 'settings' => array(
  174. 'cache_count' => '4',
  175. 'cache_enabled' => 0,
  176. 'granularity' => array(
  177. 'day' => 'day',
  178. 'hour' => 0,
  179. 'minute' => 0,
  180. 'month' => 'month',
  181. 'second' => 0,
  182. 'year' => 'year',
  183. ),
  184. 'timezone_db' => '',
  185. 'todate' => '',
  186. 'tz_handling' => 'none',
  187. ),
  188. 'translatable' => '0',
  189. 'type' => 'datetime',
  190. ),
  191. 'field_instance' => array(
  192. 'bundle' => 'popsu_actu',
  193. 'deleted' => '0',
  194. 'description' => 'Par défaut, les actualités restent 30 jours sur la page d\'accueil. Si vous souhaitez rallonger ce délai, modifier cette date.',
  195. 'display' => array(
  196. 'default' => array(
  197. 'label' => 'above',
  198. 'module' => 'date',
  199. 'settings' => array(
  200. 'format_type' => 'long',
  201. 'fromto' => 'both',
  202. 'multiple_from' => '',
  203. 'multiple_number' => '',
  204. 'multiple_to' => '',
  205. ),
  206. 'type' => 'date_default',
  207. 'weight' => 5,
  208. ),
  209. 'teaser' => array(
  210. 'label' => 'above',
  211. 'settings' => array(),
  212. 'type' => 'hidden',
  213. 'weight' => 0,
  214. ),
  215. ),
  216. 'entity_type' => 'node',
  217. 'field_name' => 'field_popsu_actu_date_fin',
  218. 'label' => 'Date de fin de publication de l\'actualité sur la page d\'accueil',
  219. 'required' => 1,
  220. 'settings' => array(
  221. 'default_value' => 'strtotime',
  222. 'default_value2' => 'same',
  223. 'default_value_code' => '+ 30 days',
  224. 'default_value_code2' => '',
  225. 'user_register_form' => FALSE,
  226. ),
  227. 'widget' => array(
  228. 'active' => 1,
  229. 'module' => 'date',
  230. 'settings' => array(
  231. 'increment' => '15',
  232. 'input_format' => 'd/m/Y - H:i:s',
  233. 'input_format_custom' => '',
  234. 'label_position' => 'above',
  235. 'text_parts' => array(),
  236. 'year_range' => '-3:+3',
  237. ),
  238. 'type' => 'date_popup',
  239. 'weight' => '9',
  240. ),
  241. ),
  242. );
  243. // Exported field: 'node-popsu_actu-field_popsu_actu_image'.
  244. $fields['node-popsu_actu-field_popsu_actu_image'] = array(
  245. 'field_config' => array(
  246. 'active' => '1',
  247. 'cardinality' => '1',
  248. 'deleted' => '0',
  249. 'entity_types' => array(),
  250. 'field_name' => 'field_popsu_actu_image',
  251. 'foreign keys' => array(
  252. 'fid' => array(
  253. 'columns' => array(
  254. 'fid' => 'fid',
  255. ),
  256. 'table' => 'file_managed',
  257. ),
  258. ),
  259. 'indexes' => array(
  260. 'fid' => array(
  261. 0 => 'fid',
  262. ),
  263. ),
  264. 'locked' => '0',
  265. 'module' => 'image',
  266. 'settings' => array(
  267. 'default_image' => 0,
  268. 'uri_scheme' => 'public',
  269. ),
  270. 'translatable' => '0',
  271. 'type' => 'image',
  272. ),
  273. 'field_instance' => array(
  274. 'bundle' => 'popsu_actu',
  275. 'deleted' => '0',
  276. 'description' => '',
  277. 'display' => array(
  278. 'default' => array(
  279. 'label' => 'above',
  280. 'module' => 'image',
  281. 'settings' => array(
  282. 'image_link' => '',
  283. 'image_style' => '',
  284. ),
  285. 'type' => 'image',
  286. 'weight' => 3,
  287. ),
  288. 'teaser' => array(
  289. 'label' => 'above',
  290. 'settings' => array(),
  291. 'type' => 'hidden',
  292. 'weight' => 0,
  293. ),
  294. ),
  295. 'entity_type' => 'node',
  296. 'field_name' => 'field_popsu_actu_image',
  297. 'label' => 'Image de l\'actualité',
  298. 'required' => 0,
  299. 'settings' => array(
  300. 'alt_field' => 0,
  301. 'default_image' => 0,
  302. 'file_directory' => '',
  303. 'file_extensions' => 'png gif jpg jpeg',
  304. 'filefield_paths' => array(
  305. 'active_updating' => 0,
  306. 'file_name' => array(
  307. 'options' => array(
  308. 'pathauto' => 1,
  309. 'transliterate' => 1,
  310. ),
  311. 'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
  312. ),
  313. 'file_path' => array(
  314. 'options' => array(
  315. 'pathauto' => 1,
  316. 'transliterate' => 1,
  317. ),
  318. 'value' => 'nodes/[node:content-type]/[node:nid]/image',
  319. ),
  320. 'retroactive_update' => 0,
  321. ),
  322. 'max_filesize' => '',
  323. 'max_resolution' => '',
  324. 'min_resolution' => '',
  325. 'title_field' => 1,
  326. 'user_register_form' => FALSE,
  327. ),
  328. 'widget' => array(
  329. 'active' => 1,
  330. 'module' => 'image',
  331. 'settings' => array(
  332. 'preview_image_style' => 'thumbnail',
  333. 'progress_indicator' => 'throbber',
  334. ),
  335. 'type' => 'image_image',
  336. 'weight' => '4',
  337. ),
  338. ),
  339. );
  340. // Exported field: 'node-popsu_actu-field_popsu_actu_soustitre'.
  341. $fields['node-popsu_actu-field_popsu_actu_soustitre'] = array(
  342. 'field_config' => array(
  343. 'active' => '1',
  344. 'cardinality' => '1',
  345. 'deleted' => '0',
  346. 'entity_types' => array(),
  347. 'field_name' => 'field_popsu_actu_soustitre',
  348. 'foreign keys' => array(
  349. 'format' => array(
  350. 'columns' => array(
  351. 'format' => 'format',
  352. ),
  353. 'table' => 'filter_format',
  354. ),
  355. ),
  356. 'indexes' => array(
  357. 'format' => array(
  358. 0 => 'format',
  359. ),
  360. ),
  361. 'locked' => '0',
  362. 'module' => 'text',
  363. 'settings' => array(
  364. 'max_length' => '255',
  365. ),
  366. 'translatable' => '0',
  367. 'type' => 'text',
  368. ),
  369. 'field_instance' => array(
  370. 'bundle' => 'popsu_actu',
  371. 'default_value' => NULL,
  372. 'deleted' => '0',
  373. 'description' => '',
  374. 'display' => array(
  375. 'default' => array(
  376. 'label' => 'above',
  377. 'module' => 'text',
  378. 'settings' => array(),
  379. 'type' => 'text_default',
  380. 'weight' => 4,
  381. ),
  382. 'teaser' => array(
  383. 'label' => 'above',
  384. 'settings' => array(),
  385. 'type' => 'hidden',
  386. 'weight' => 0,
  387. ),
  388. ),
  389. 'entity_type' => 'node',
  390. 'field_name' => 'field_popsu_actu_soustitre',
  391. 'label' => 'Sous-titre de l\'actualité',
  392. 'required' => 0,
  393. 'settings' => array(
  394. 'text_processing' => '0',
  395. 'user_register_form' => FALSE,
  396. ),
  397. 'widget' => array(
  398. 'active' => 1,
  399. 'module' => 'text',
  400. 'settings' => array(
  401. 'size' => '60',
  402. ),
  403. 'type' => 'text_textfield',
  404. 'weight' => '7',
  405. ),
  406. ),
  407. );
  408. // Translatables
  409. // Included for use with string extractors like potx.
  410. t('Date de début de publication de l\'actualité sur la page d\'accueil');
  411. t('Date de fin de publication de l\'actualité sur la page d\'accueil');
  412. t('Image de l\'actualité');
  413. t('Par défaut, les actualités restent 30 jours sur la page d\'accueil. Si vous souhaitez rallonger ce délai, modifier cette date.');
  414. t('Si vous souhaitez retarder la publication de cette actualité, choisissez une date dans le futur.');
  415. t('Sous-titre de l\'actualité');
  416. t('Texte de l\'actualité');
  417. return $fields;
  418. }