popsu_documents.features.field.inc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  1. <?php
  2. /**
  3. * @file
  4. * popsu_documents.features.field.inc
  5. */
  6. /**
  7. * Implements hook_field_default_fields().
  8. */
  9. function popsu_documents_field_default_fields() {
  10. $fields = array();
  11. // Exported field: 'node-popsu_document-field_popsu_doc_body'.
  12. $fields['node-popsu_document-field_popsu_doc_body'] = array(
  13. 'field_config' => array(
  14. 'active' => '1',
  15. 'cardinality' => '1',
  16. 'deleted' => '0',
  17. 'entity_types' => array(),
  18. 'field_name' => 'field_popsu_doc_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_document',
  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_doc_body',
  60. 'label' => 'Résumé du document',
  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' => '6',
  76. ),
  77. ),
  78. );
  79. // Exported field: 'node-popsu_document-field_popsu_doc_files'.
  80. $fields['node-popsu_document-field_popsu_doc_files'] = array(
  81. 'field_config' => array(
  82. 'active' => '1',
  83. 'cardinality' => '-1',
  84. 'deleted' => '0',
  85. 'entity_types' => array(),
  86. 'field_name' => 'field_popsu_doc_files',
  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' => 'file',
  102. 'settings' => array(
  103. 'display_default' => 0,
  104. 'display_field' => 0,
  105. 'uri_scheme' => 'public',
  106. ),
  107. 'translatable' => '0',
  108. 'type' => 'file',
  109. ),
  110. 'field_instance' => array(
  111. 'bundle' => 'popsu_document',
  112. 'deleted' => '0',
  113. 'description' => '',
  114. 'display' => array(
  115. 'default' => array(
  116. 'label' => 'above',
  117. 'module' => 'file',
  118. 'settings' => array(),
  119. 'type' => 'file_default',
  120. 'weight' => 4,
  121. ),
  122. 'teaser' => array(
  123. 'label' => 'above',
  124. 'settings' => array(),
  125. 'type' => 'hidden',
  126. 'weight' => 0,
  127. ),
  128. ),
  129. 'entity_type' => 'node',
  130. 'field_name' => 'field_popsu_doc_files',
  131. 'label' => 'Fichier(s) joint(s) ',
  132. 'required' => 0,
  133. 'settings' => array(
  134. 'description_field' => 1,
  135. 'file_directory' => '',
  136. 'file_extensions' => 'txt pdf zip rar xls doc xlsx docx ppt pptx',
  137. 'filefield_paths' => array(
  138. 'active_updating' => 0,
  139. 'file_name' => array(
  140. 'options' => array(
  141. 'pathauto' => 1,
  142. 'transliterate' => 1,
  143. ),
  144. 'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
  145. ),
  146. 'file_path' => array(
  147. 'options' => array(
  148. 'pathauto' => 1,
  149. 'transliterate' => 1,
  150. ),
  151. 'value' => 'nodes/[node:content-type]/[node:nid]/files',
  152. ),
  153. 'retroactive_update' => 0,
  154. ),
  155. 'max_filesize' => '',
  156. 'user_register_form' => FALSE,
  157. ),
  158. 'widget' => array(
  159. 'active' => 1,
  160. 'module' => 'file',
  161. 'settings' => array(
  162. 'progress_indicator' => 'throbber',
  163. ),
  164. 'type' => 'file_generic',
  165. 'weight' => '3',
  166. ),
  167. ),
  168. );
  169. // Exported field: 'node-popsu_document-field_popsu_doc_parent'.
  170. $fields['node-popsu_document-field_popsu_doc_parent'] = array(
  171. 'field_config' => array(
  172. 'active' => '1',
  173. 'cardinality' => '1',
  174. 'deleted' => '0',
  175. 'entity_types' => array(),
  176. 'field_name' => 'field_popsu_doc_parent',
  177. 'foreign keys' => array(
  178. 'nid' => array(
  179. 'columns' => array(
  180. 'nid' => 'nid',
  181. ),
  182. 'table' => 'node',
  183. ),
  184. ),
  185. 'indexes' => array(
  186. 'nid' => array(
  187. 0 => 'nid',
  188. ),
  189. ),
  190. 'locked' => '0',
  191. 'module' => 'node_reference',
  192. 'settings' => array(
  193. 'referenceable_types' => array(
  194. 'article' => 0,
  195. 'page' => 0,
  196. 'popsu_actu' => 'popsu_actu',
  197. 'popsu_colloque' => 'popsu_colloque',
  198. 'popsu_document' => 0,
  199. 'popsu_page' => 'popsu_page',
  200. 'popsu_page_neutral' => 'popsu_page_neutral',
  201. 'popsu_projet' => 'popsu_projet',
  202. 'popsu_projet_europe' => 'popsu_projet_europe',
  203. 'popsu_publication' => 'popsu_publication',
  204. 'popsu_special' => 'popsu_special',
  205. 'popsu_theme_europe' => 'popsu_theme_europe',
  206. 'popsu_theme_local' => 'popsu_theme_local',
  207. 'popsu_theme_trans' => 'popsu_theme_trans',
  208. 'popsu_ville' => 'popsu_ville',
  209. 'popsu_ville_europe' => 'popsu_ville_europe',
  210. ),
  211. 'view' => array(
  212. 'args' => array(),
  213. 'display_name' => '',
  214. 'view_name' => '',
  215. ),
  216. ),
  217. 'translatable' => '0',
  218. 'type' => 'node_reference',
  219. ),
  220. 'field_instance' => array(
  221. 'bundle' => 'popsu_document',
  222. 'default_value' => NULL,
  223. 'deleted' => '0',
  224. 'description' => '',
  225. 'display' => array(
  226. 'default' => array(
  227. 'label' => 'above',
  228. 'module' => 'node_reference',
  229. 'settings' => array(),
  230. 'type' => 'node_reference_default',
  231. 'weight' => 3,
  232. ),
  233. 'teaser' => array(
  234. 'label' => 'above',
  235. 'settings' => array(),
  236. 'type' => 'hidden',
  237. 'weight' => 0,
  238. ),
  239. ),
  240. 'entity_type' => 'node',
  241. 'field_name' => 'field_popsu_doc_parent',
  242. 'label' => 'Page d\'attache du document',
  243. 'required' => 0,
  244. 'settings' => array(
  245. 'user_register_form' => FALSE,
  246. ),
  247. 'widget' => array(
  248. 'active' => 1,
  249. 'module' => 'nodereference_url',
  250. 'settings' => array(
  251. 'autocomplete_match' => 'contains',
  252. 'edit_fallback' => 1,
  253. 'fallback' => 'autocomplete',
  254. 'node_link' => array(
  255. 'destination' => 'node',
  256. 'full' => 1,
  257. 'hover_title' => 'Ajouter un document attaché à cette page',
  258. 'teaser' => 0,
  259. 'title' => 'Ajouter un document',
  260. ),
  261. ),
  262. 'type' => 'nodereference_url',
  263. 'weight' => '3',
  264. ),
  265. ),
  266. );
  267. // Exported field: 'node-popsu_document-field_popsu_doc_source'.
  268. $fields['node-popsu_document-field_popsu_doc_source'] = array(
  269. 'field_config' => array(
  270. 'active' => '1',
  271. 'cardinality' => '1',
  272. 'deleted' => '0',
  273. 'entity_types' => array(),
  274. 'field_name' => 'field_popsu_doc_source',
  275. 'foreign keys' => array(
  276. 'format' => array(
  277. 'columns' => array(
  278. 'format' => 'format',
  279. ),
  280. 'table' => 'filter_format',
  281. ),
  282. ),
  283. 'indexes' => array(
  284. 'format' => array(
  285. 0 => 'format',
  286. ),
  287. ),
  288. 'locked' => '0',
  289. 'module' => 'text',
  290. 'settings' => array(
  291. 'max_length' => '255',
  292. ),
  293. 'translatable' => '0',
  294. 'type' => 'text',
  295. ),
  296. 'field_instance' => array(
  297. 'bundle' => 'popsu_document',
  298. 'default_value' => NULL,
  299. 'deleted' => '0',
  300. 'description' => 'Ex: Article L.Monneraud (Volume 6, déc 2007)',
  301. 'display' => array(
  302. 'default' => array(
  303. 'label' => 'above',
  304. 'module' => 'text',
  305. 'settings' => array(),
  306. 'type' => 'text_default',
  307. 'weight' => 5,
  308. ),
  309. 'teaser' => array(
  310. 'label' => 'above',
  311. 'settings' => array(),
  312. 'type' => 'hidden',
  313. 'weight' => 0,
  314. ),
  315. ),
  316. 'entity_type' => 'node',
  317. 'field_name' => 'field_popsu_doc_source',
  318. 'label' => 'Origine/source de cette ressource',
  319. 'required' => 0,
  320. 'settings' => array(
  321. 'text_processing' => '0',
  322. 'user_register_form' => FALSE,
  323. ),
  324. 'widget' => array(
  325. 'active' => 1,
  326. 'module' => 'text',
  327. 'settings' => array(
  328. 'size' => '60',
  329. ),
  330. 'type' => 'text_textfield',
  331. 'weight' => '5',
  332. ),
  333. ),
  334. );
  335. // Exported field: 'node-popsu_document-field_popsu_doc_type'.
  336. $fields['node-popsu_document-field_popsu_doc_type'] = array(
  337. 'field_config' => array(
  338. 'active' => '1',
  339. 'cardinality' => '1',
  340. 'deleted' => '0',
  341. 'entity_types' => array(),
  342. 'field_name' => 'field_popsu_doc_type',
  343. 'foreign keys' => array(
  344. 'tid' => array(
  345. 'columns' => array(
  346. 'tid' => 'tid',
  347. ),
  348. 'table' => 'taxonomy_term_data',
  349. ),
  350. ),
  351. 'indexes' => array(
  352. 'tid' => array(
  353. 0 => 'tid',
  354. ),
  355. ),
  356. 'locked' => '0',
  357. 'module' => 'taxonomy',
  358. 'settings' => array(
  359. 'allowed_values' => array(
  360. 0 => array(
  361. 'vocabulary' => 'popsu_documents_type',
  362. 'parent' => '0',
  363. ),
  364. ),
  365. 'options_list_callback' => 'i18n_taxonomy_allowed_values',
  366. ),
  367. 'translatable' => '0',
  368. 'type' => 'taxonomy_term_reference',
  369. ),
  370. 'field_instance' => array(
  371. 'bundle' => 'popsu_document',
  372. 'default_value' => NULL,
  373. 'deleted' => '0',
  374. 'description' => '',
  375. 'display' => array(
  376. 'default' => array(
  377. 'label' => 'above',
  378. 'module' => 'i18n_taxonomy',
  379. 'settings' => array(),
  380. 'type' => 'i18n_taxonomy_term_reference_link',
  381. 'weight' => 2,
  382. ),
  383. 'teaser' => array(
  384. 'label' => 'above',
  385. 'settings' => array(),
  386. 'type' => 'hidden',
  387. 'weight' => 0,
  388. ),
  389. ),
  390. 'entity_type' => 'node',
  391. 'field_name' => 'field_popsu_doc_type',
  392. 'label' => 'Type de document',
  393. 'required' => 1,
  394. 'settings' => array(
  395. 'user_register_form' => FALSE,
  396. ),
  397. 'widget' => array(
  398. 'active' => 1,
  399. 'module' => 'options',
  400. 'settings' => array(),
  401. 'type' => 'options_select',
  402. 'weight' => '1',
  403. ),
  404. ),
  405. );
  406. // Translatables
  407. // Included for use with string extractors like potx.
  408. t('Ex: Article L.Monneraud (Volume 6, déc 2007)');
  409. t('Fichier(s) joint(s) ');
  410. t('Origine/source de cette ressource');
  411. t('Page d\'attache du document');
  412. t('Résumé du document');
  413. t('Type de document');
  414. return $fields;
  415. }