popsu_actualites.features.field_instance.inc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. <?php
  2. /**
  3. * @file
  4. * popsu_actualites.features.field_instance.inc
  5. */
  6. /**
  7. * Implements hook_field_default_field_instances().
  8. */
  9. function popsu_actualites_field_default_field_instances() {
  10. $field_instances = array();
  11. // Exported field_instance: 'node-popsu_actu-field_popsu_actu_attachment'.
  12. $field_instances['node-popsu_actu-field_popsu_actu_attachment'] = array(
  13. 'bundle' => 'popsu_actu',
  14. 'deleted' => 0,
  15. 'description' => '',
  16. 'display' => array(
  17. 'default' => array(
  18. 'label' => 'above',
  19. 'module' => 'file',
  20. 'settings' => array(),
  21. 'type' => 'file_default',
  22. 'weight' => 6,
  23. ),
  24. 'teaser' => array(
  25. 'label' => 'above',
  26. 'settings' => array(),
  27. 'type' => 'hidden',
  28. 'weight' => 0,
  29. ),
  30. ),
  31. 'entity_type' => 'node',
  32. 'field_name' => 'field_popsu_actu_attachment',
  33. 'label' => 'Pièces jointes à cette actualité',
  34. 'required' => 0,
  35. 'settings' => array(
  36. 'description_field' => 1,
  37. 'file_directory' => '',
  38. 'file_extensions' => 'txt pdf zip rar xls doc xlsx docx ppt pptx',
  39. 'filefield_paths' => array(
  40. 'active_updating' => 0,
  41. 'file_name' => array(
  42. 'options' => array(
  43. 'pathauto' => 1,
  44. 'transliterate' => 1,
  45. ),
  46. 'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
  47. ),
  48. 'file_path' => array(
  49. 'options' => array(
  50. 'pathauto' => 1,
  51. 'transliterate' => 1,
  52. ),
  53. 'value' => 'nodes/[node:content-type]/[node:nid]/files',
  54. ),
  55. 'retroactive_update' => 0,
  56. ),
  57. 'max_filesize' => '',
  58. 'user_register_form' => FALSE,
  59. ),
  60. 'widget' => array(
  61. 'active' => 1,
  62. 'module' => 'file',
  63. 'settings' => array(
  64. 'insert' => 0,
  65. 'insert_absolute' => FALSE,
  66. 'insert_class' => '',
  67. 'insert_default' => array(
  68. 0 => 'auto',
  69. ),
  70. 'insert_styles' => array(
  71. 0 => 'auto',
  72. ),
  73. 'insert_width' => '',
  74. 'progress_indicator' => 'bar',
  75. ),
  76. 'type' => 'file_generic',
  77. 'weight' => 3,
  78. ),
  79. );
  80. // Exported field_instance: 'node-popsu_actu-field_popsu_actu_body'.
  81. $field_instances['node-popsu_actu-field_popsu_actu_body'] = array(
  82. 'bundle' => 'popsu_actu',
  83. 'default_value' => NULL,
  84. 'deleted' => 0,
  85. 'description' => '',
  86. 'display' => array(
  87. 'default' => array(
  88. 'label' => 'hidden',
  89. 'module' => 'text',
  90. 'settings' => array(),
  91. 'type' => 'text_default',
  92. 'weight' => 1,
  93. ),
  94. 'teaser' => array(
  95. 'label' => 'above',
  96. 'settings' => array(),
  97. 'type' => 'hidden',
  98. 'weight' => 0,
  99. ),
  100. ),
  101. 'entity_type' => 'node',
  102. 'field_name' => 'field_popsu_actu_body',
  103. 'label' => 'Texte de l\'actualité',
  104. 'required' => 0,
  105. 'settings' => array(
  106. 'display_summary' => 0,
  107. 'text_processing' => 1,
  108. 'user_register_form' => FALSE,
  109. ),
  110. 'widget' => array(
  111. 'active' => 1,
  112. 'module' => 'text',
  113. 'settings' => array(
  114. 'rows' => 20,
  115. 'summary_rows' => 5,
  116. ),
  117. 'type' => 'text_textarea_with_summary',
  118. 'weight' => 12,
  119. ),
  120. );
  121. // Exported field_instance: 'node-popsu_actu-field_popsu_actu_date'.
  122. $field_instances['node-popsu_actu-field_popsu_actu_date'] = array(
  123. 'bundle' => 'popsu_actu',
  124. 'deleted' => 0,
  125. 'description' => 'Si vous souhaitez retarder la publication de cette actualité, choisissez une date dans le futur.',
  126. 'display' => array(
  127. 'default' => array(
  128. 'label' => 'hidden',
  129. 'module' => 'date',
  130. 'settings' => array(
  131. 'format_type' => 'long',
  132. 'fromto' => 'both',
  133. 'multiple_from' => '',
  134. 'multiple_number' => '',
  135. 'multiple_to' => '',
  136. ),
  137. 'type' => 'date_default',
  138. 'weight' => 2,
  139. ),
  140. 'teaser' => array(
  141. 'label' => 'above',
  142. 'settings' => array(),
  143. 'type' => 'hidden',
  144. 'weight' => 0,
  145. ),
  146. ),
  147. 'entity_type' => 'node',
  148. 'field_name' => 'field_popsu_actu_date',
  149. 'label' => 'Date de début de validité de l\'actualité',
  150. 'required' => 1,
  151. 'settings' => array(
  152. 'default_value' => 'now',
  153. 'default_value2' => 'same',
  154. 'default_value_code' => '',
  155. 'default_value_code2' => '',
  156. 'user_register_form' => FALSE,
  157. ),
  158. 'widget' => array(
  159. 'active' => 1,
  160. 'module' => 'date',
  161. 'settings' => array(
  162. 'increment' => 15,
  163. 'input_format' => 'd/m/Y - H:i:s',
  164. 'input_format_custom' => '',
  165. 'label_position' => 'above',
  166. 'text_parts' => array(),
  167. 'year_range' => '-3:+3',
  168. ),
  169. 'type' => 'date_popup',
  170. 'weight' => 9,
  171. ),
  172. );
  173. // Exported field_instance: 'node-popsu_actu-field_popsu_actu_date_fin'.
  174. $field_instances['node-popsu_actu-field_popsu_actu_date_fin'] = array(
  175. 'bundle' => 'popsu_actu',
  176. 'deleted' => 0,
  177. '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.',
  178. 'display' => array(
  179. 'default' => array(
  180. 'label' => 'hidden',
  181. 'module' => 'date',
  182. 'settings' => array(
  183. 'format_type' => 'long',
  184. 'fromto' => 'both',
  185. 'multiple_from' => '',
  186. 'multiple_number' => '',
  187. 'multiple_to' => '',
  188. ),
  189. 'type' => 'date_default',
  190. 'weight' => 5,
  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_actu_date_fin',
  201. 'label' => 'Date de fin de validité de l\'actualité',
  202. 'required' => 1,
  203. 'settings' => array(
  204. 'default_value' => 'strtotime',
  205. 'default_value2' => 'same',
  206. 'default_value_code' => '+ 30 days',
  207. 'default_value_code2' => '',
  208. 'user_register_form' => FALSE,
  209. ),
  210. 'widget' => array(
  211. 'active' => 1,
  212. 'module' => 'date',
  213. 'settings' => array(
  214. 'increment' => 15,
  215. 'input_format' => 'd/m/Y - H:i:s',
  216. 'input_format_custom' => '',
  217. 'label_position' => 'above',
  218. 'text_parts' => array(),
  219. 'year_range' => '-3:+3',
  220. ),
  221. 'type' => 'date_popup',
  222. 'weight' => 10,
  223. ),
  224. );
  225. // Exported field_instance: 'node-popsu_actu-field_popsu_actu_enhome'.
  226. $field_instances['node-popsu_actu-field_popsu_actu_enhome'] = array(
  227. 'bundle' => 'popsu_actu',
  228. 'default_value' => array(
  229. 0 => array(
  230. 'value' => 1,
  231. ),
  232. ),
  233. 'deleted' => 0,
  234. 'description' => '',
  235. 'display' => array(
  236. 'default' => array(
  237. 'label' => 'hidden',
  238. 'settings' => array(),
  239. 'type' => 'hidden',
  240. 'weight' => 7,
  241. ),
  242. 'teaser' => array(
  243. 'label' => 'above',
  244. 'settings' => array(),
  245. 'type' => 'hidden',
  246. 'weight' => 0,
  247. ),
  248. ),
  249. 'entity_type' => 'node',
  250. 'field_name' => 'field_popsu_actu_enhome',
  251. 'label' => 'Publier sur la page d\'accueil',
  252. 'required' => 0,
  253. 'settings' => array(
  254. 'user_register_form' => FALSE,
  255. ),
  256. 'widget' => array(
  257. 'active' => 1,
  258. 'module' => 'options',
  259. 'settings' => array(
  260. 'display_label' => 0,
  261. ),
  262. 'type' => 'options_onoff',
  263. 'weight' => 8,
  264. ),
  265. );
  266. // Exported field_instance: 'node-popsu_actu-field_popsu_actu_image'.
  267. $field_instances['node-popsu_actu-field_popsu_actu_image'] = array(
  268. 'bundle' => 'popsu_actu',
  269. 'deleted' => 0,
  270. 'description' => '',
  271. 'display' => array(
  272. 'default' => array(
  273. 'label' => 'hidden',
  274. 'module' => 'image',
  275. 'settings' => array(
  276. 'image_link' => '',
  277. 'image_style' => '',
  278. ),
  279. 'type' => 'image',
  280. 'weight' => 3,
  281. ),
  282. 'teaser' => array(
  283. 'label' => 'above',
  284. 'settings' => array(),
  285. 'type' => 'hidden',
  286. 'weight' => 0,
  287. ),
  288. ),
  289. 'entity_type' => 'node',
  290. 'field_name' => 'field_popsu_actu_image',
  291. 'label' => 'Image de l\'actualité',
  292. 'required' => 0,
  293. 'settings' => array(
  294. 'alt_field' => 0,
  295. 'default_image' => 0,
  296. 'file_directory' => '',
  297. 'file_extensions' => 'png gif jpg jpeg',
  298. 'filefield_paths' => array(
  299. 'active_updating' => 0,
  300. 'file_name' => array(
  301. 'options' => array(
  302. 'pathauto' => 1,
  303. 'transliterate' => 1,
  304. ),
  305. 'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
  306. ),
  307. 'file_path' => array(
  308. 'options' => array(
  309. 'pathauto' => 1,
  310. 'transliterate' => 1,
  311. ),
  312. 'value' => 'nodes/[node:content-type]/[node:nid]/image',
  313. ),
  314. 'retroactive_update' => 0,
  315. ),
  316. 'max_filesize' => '',
  317. 'max_resolution' => '',
  318. 'min_resolution' => '',
  319. 'title_field' => 1,
  320. 'user_register_form' => FALSE,
  321. ),
  322. 'widget' => array(
  323. 'active' => 1,
  324. 'module' => 'image',
  325. 'settings' => array(
  326. 'insert' => 0,
  327. 'insert_absolute' => FALSE,
  328. 'insert_class' => '',
  329. 'insert_default' => array(
  330. 0 => 'auto',
  331. ),
  332. 'insert_styles' => array(
  333. 0 => 'auto',
  334. ),
  335. 'insert_width' => '',
  336. 'preview_image_style' => 'thumbnail',
  337. 'progress_indicator' => 'throbber',
  338. ),
  339. 'type' => 'image_image',
  340. 'weight' => 4,
  341. ),
  342. );
  343. // Exported field_instance: 'node-popsu_actu-field_popsu_actu_soustitre'.
  344. $field_instances['node-popsu_actu-field_popsu_actu_soustitre'] = array(
  345. 'bundle' => 'popsu_actu',
  346. 'default_value' => NULL,
  347. 'deleted' => 0,
  348. 'description' => '',
  349. 'display' => array(
  350. 'default' => array(
  351. 'label' => 'hidden',
  352. 'module' => 'text',
  353. 'settings' => array(),
  354. 'type' => 'text_default',
  355. 'weight' => 4,
  356. ),
  357. 'teaser' => array(
  358. 'label' => 'above',
  359. 'settings' => array(),
  360. 'type' => 'hidden',
  361. 'weight' => 0,
  362. ),
  363. ),
  364. 'entity_type' => 'node',
  365. 'field_name' => 'field_popsu_actu_soustitre',
  366. 'label' => 'Sous-titre de l\'actualité',
  367. 'required' => 0,
  368. 'settings' => array(
  369. 'text_processing' => 0,
  370. 'user_register_form' => FALSE,
  371. ),
  372. 'widget' => array(
  373. 'active' => 1,
  374. 'module' => 'text',
  375. 'settings' => array(
  376. 'size' => 60,
  377. ),
  378. 'type' => 'text_textfield',
  379. 'weight' => 7,
  380. ),
  381. );
  382. // Translatables
  383. // Included for use with string extractors like potx.
  384. t('Date de début de validité de l\'actualité');
  385. t('Date de fin de validité de l\'actualité');
  386. t('Image de l\'actualité');
  387. 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.');
  388. t('Pièces jointes à cette actualité');
  389. t('Publier sur la page d\'accueil');
  390. t('Si vous souhaitez retarder la publication de cette actualité, choisissez une date dans le futur.');
  391. t('Sous-titre de l\'actualité');
  392. t('Texte de l\'actualité');
  393. return $field_instances;
  394. }