popsu_publications.features.field.inc 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  1. <?php
  2. /**
  3. * @file
  4. * popsu_publications.features.field.inc
  5. */
  6. /**
  7. * Implements hook_field_default_fields().
  8. */
  9. function popsu_publications_field_default_fields() {
  10. $fields = array();
  11. // Exported field: 'node-popsu_publication-field_popsu_publication_body'.
  12. $fields['node-popsu_publication-field_popsu_publication_body'] = array(
  13. 'field_config' => array(
  14. 'active' => '1',
  15. 'cardinality' => '1',
  16. 'deleted' => '0',
  17. 'entity_types' => array(),
  18. 'field_name' => 'field_popsu_publication_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_publication',
  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' => '2',
  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_publication_body',
  60. 'label' => 'Résumé de la publication',
  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' => '3',
  76. ),
  77. ),
  78. );
  79. // Exported field: 'node-popsu_publication-field_popsu_publication_cover'.
  80. $fields['node-popsu_publication-field_popsu_publication_cover'] = array(
  81. 'field_config' => array(
  82. 'active' => '1',
  83. 'cardinality' => '1',
  84. 'deleted' => '0',
  85. 'entity_types' => array(),
  86. 'field_name' => 'field_popsu_publication_cover',
  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_publication',
  111. 'deleted' => '0',
  112. 'description' => 'Vous pouvez charger une image représentant la couverture de cette publication.',
  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' => '1',
  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_publication_cover',
  133. 'label' => 'Image de couverture',
  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]/imagecover',
  155. ),
  156. 'retroactive_update' => 0,
  157. ),
  158. 'max_filesize' => '',
  159. 'max_resolution' => '',
  160. 'min_resolution' => '',
  161. 'title_field' => 0,
  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' => '2',
  173. ),
  174. ),
  175. );
  176. // Exported field: 'node-popsu_publication-field_popsu_publication_soustitr'.
  177. $fields['node-popsu_publication-field_popsu_publication_soustitr'] = array(
  178. 'field_config' => array(
  179. 'active' => '1',
  180. 'cardinality' => '1',
  181. 'deleted' => '0',
  182. 'entity_types' => array(),
  183. 'field_name' => 'field_popsu_publication_soustitr',
  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. 'translatable' => '0',
  201. 'type' => 'text_long',
  202. ),
  203. 'field_instance' => array(
  204. 'bundle' => 'popsu_publication',
  205. 'default_value' => NULL,
  206. 'deleted' => '0',
  207. 'description' => '',
  208. 'display' => array(
  209. 'default' => array(
  210. 'label' => 'above',
  211. 'module' => 'text',
  212. 'settings' => array(),
  213. 'type' => 'text_default',
  214. 'weight' => '0',
  215. ),
  216. 'teaser' => array(
  217. 'label' => 'above',
  218. 'settings' => array(),
  219. 'type' => 'hidden',
  220. 'weight' => 0,
  221. ),
  222. ),
  223. 'entity_type' => 'node',
  224. 'field_name' => 'field_popsu_publication_soustitr',
  225. 'label' => 'Sous titre de la publication',
  226. 'required' => 0,
  227. 'settings' => array(
  228. 'text_processing' => '0',
  229. 'user_register_form' => FALSE,
  230. ),
  231. 'widget' => array(
  232. 'active' => 1,
  233. 'module' => 'text',
  234. 'settings' => array(
  235. 'rows' => '3',
  236. ),
  237. 'type' => 'text_textarea',
  238. 'weight' => '5',
  239. ),
  240. ),
  241. );
  242. // Exported field: 'node-popsu_publication-field_popsu_publication_theme'.
  243. $fields['node-popsu_publication-field_popsu_publication_theme'] = array(
  244. 'field_config' => array(
  245. 'active' => '1',
  246. 'cardinality' => '1',
  247. 'deleted' => '0',
  248. 'entity_types' => array(),
  249. 'field_name' => 'field_popsu_publication_theme',
  250. 'foreign keys' => array(
  251. 'nid' => array(
  252. 'columns' => array(
  253. 'nid' => 'nid',
  254. ),
  255. 'table' => 'node',
  256. ),
  257. ),
  258. 'indexes' => array(
  259. 'nid' => array(
  260. 0 => 'nid',
  261. ),
  262. ),
  263. 'locked' => '0',
  264. 'module' => 'node_reference',
  265. 'settings' => array(
  266. 'referenceable_types' => array(
  267. 'article' => 0,
  268. 'page' => 0,
  269. 'popsu_actu' => 0,
  270. 'popsu_colloque' => 0,
  271. 'popsu_document' => 0,
  272. 'popsu_page' => 0,
  273. 'popsu_page_neutral' => 0,
  274. 'popsu_projet' => 0,
  275. 'popsu_projet_europe' => 0,
  276. 'popsu_publication' => 0,
  277. 'popsu_special' => 0,
  278. 'popsu_theme_europe' => 'popsu_theme_europe',
  279. 'popsu_theme_local' => 0,
  280. 'popsu_theme_trans' => 0,
  281. 'popsu_ville' => 0,
  282. 'popsu_ville_europe' => 0,
  283. ),
  284. 'view' => array(
  285. 'args' => array(),
  286. 'display_name' => '',
  287. 'view_name' => '',
  288. ),
  289. ),
  290. 'translatable' => '0',
  291. 'type' => 'node_reference',
  292. ),
  293. 'field_instance' => array(
  294. 'bundle' => 'popsu_publication',
  295. 'default_value' => NULL,
  296. 'deleted' => '0',
  297. 'description' => '',
  298. 'display' => array(
  299. 'default' => array(
  300. 'label' => 'above',
  301. 'module' => 'node_reference',
  302. 'settings' => array(),
  303. 'type' => 'node_reference_default',
  304. 'weight' => 5,
  305. ),
  306. 'teaser' => array(
  307. 'label' => 'above',
  308. 'settings' => array(),
  309. 'type' => 'hidden',
  310. 'weight' => 0,
  311. ),
  312. ),
  313. 'entity_type' => 'node',
  314. 'field_name' => 'field_popsu_publication_theme',
  315. 'label' => 'ou Thème (POPSU Europe)',
  316. 'required' => 0,
  317. 'settings' => array(
  318. 'user_register_form' => FALSE,
  319. ),
  320. 'widget' => array(
  321. 'active' => 1,
  322. 'module' => 'options',
  323. 'settings' => array(),
  324. 'type' => 'options_select',
  325. 'weight' => '3',
  326. ),
  327. ),
  328. );
  329. // Translatables
  330. // Included for use with string extractors like potx.
  331. t('Image de couverture');
  332. t('Résumé de la publication');
  333. t('Sous titre de la publication');
  334. t('Vous pouvez charger une image représentant la couverture de cette publication.');
  335. t('ou Thème (POPSU Europe)');
  336. return $fields;
  337. }