materio_subscriptions.features.field_instance.inc 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. <?php
  2. /**
  3. * @file
  4. * materio_subscriptions.features.field_instance.inc
  5. */
  6. /**
  7. * Implements hook_field_default_field_instances().
  8. */
  9. function materio_subscriptions_field_default_field_instances() {
  10. $field_instances = array();
  11. // Exported field_instance: 'node-product-body'
  12. $field_instances['node-product-body'] = array(
  13. 'bundle' => 'product',
  14. 'default_value' => NULL,
  15. 'deleted' => 0,
  16. 'description' => '',
  17. 'display' => array(
  18. 'bookmark' => array(
  19. 'label' => 'above',
  20. 'settings' => array(),
  21. 'type' => 'hidden',
  22. 'weight' => 0,
  23. ),
  24. 'cardbig' => array(
  25. 'label' => 'above',
  26. 'settings' => array(),
  27. 'type' => 'hidden',
  28. 'weight' => 0,
  29. ),
  30. 'cardfull' => array(
  31. 'label' => 'above',
  32. 'settings' => array(),
  33. 'type' => 'hidden',
  34. 'weight' => 0,
  35. ),
  36. 'cardmedium' => array(
  37. 'label' => 'above',
  38. 'settings' => array(),
  39. 'type' => 'hidden',
  40. 'weight' => 0,
  41. ),
  42. 'cardsmall' => array(
  43. 'label' => 'above',
  44. 'settings' => array(),
  45. 'type' => 'hidden',
  46. 'weight' => 0,
  47. ),
  48. 'default' => array(
  49. 'label' => 'hidden',
  50. 'module' => 'text',
  51. 'settings' => array(),
  52. 'type' => 'text_default',
  53. 'weight' => 0,
  54. ),
  55. 'print' => array(
  56. 'label' => 'above',
  57. 'settings' => array(),
  58. 'type' => 'hidden',
  59. 'weight' => 0,
  60. ),
  61. 'teaser' => array(
  62. 'label' => 'hidden',
  63. 'module' => 'text',
  64. 'settings' => array(
  65. 'trim_length' => 600,
  66. ),
  67. 'type' => 'text_summary_or_trimmed',
  68. 'weight' => 0,
  69. ),
  70. ),
  71. 'entity_type' => 'node',
  72. 'field_name' => 'body',
  73. 'label' => 'Description',
  74. 'required' => FALSE,
  75. 'settings' => array(
  76. 'display_summary' => TRUE,
  77. 'entity_translation_sync' => FALSE,
  78. 'text_processing' => 1,
  79. 'user_register_form' => FALSE,
  80. ),
  81. 'widget' => array(
  82. 'module' => 'text',
  83. 'settings' => array(
  84. 'rows' => 20,
  85. 'summary_rows' => 5,
  86. ),
  87. 'type' => 'text_textarea_with_summary',
  88. 'weight' => 31,
  89. ),
  90. );
  91. // Exported field_instance: 'node-product-taxonomy_catalog'
  92. $field_instances['node-product-taxonomy_catalog'] = array(
  93. 'bundle' => 'product',
  94. 'default_value' => NULL,
  95. 'deleted' => 0,
  96. 'description' => '',
  97. 'display' => array(
  98. 'bookmark' => array(
  99. 'label' => 'above',
  100. 'settings' => array(),
  101. 'type' => 'hidden',
  102. 'weight' => 0,
  103. ),
  104. 'cardbig' => array(
  105. 'label' => 'above',
  106. 'settings' => array(),
  107. 'type' => 'hidden',
  108. 'weight' => 0,
  109. ),
  110. 'cardfull' => array(
  111. 'label' => 'above',
  112. 'settings' => array(),
  113. 'type' => 'hidden',
  114. 'weight' => 0,
  115. ),
  116. 'cardmedium' => array(
  117. 'label' => 'above',
  118. 'settings' => array(),
  119. 'type' => 'hidden',
  120. 'weight' => 0,
  121. ),
  122. 'cardsmall' => array(
  123. 'label' => 'above',
  124. 'settings' => array(),
  125. 'type' => 'hidden',
  126. 'weight' => 0,
  127. ),
  128. 'default' => array(
  129. 'label' => 'above',
  130. 'module' => 'i18n_taxonomy',
  131. 'settings' => array(),
  132. 'type' => 'i18n_taxonomy_term_reference_link',
  133. 'weight' => 2,
  134. ),
  135. 'print' => array(
  136. 'label' => 'above',
  137. 'settings' => array(),
  138. 'type' => 'hidden',
  139. 'weight' => 0,
  140. ),
  141. 'teaser' => array(
  142. 'label' => 'above',
  143. 'settings' => array(),
  144. 'type' => 'hidden',
  145. 'weight' => 0,
  146. ),
  147. ),
  148. 'entity_type' => 'node',
  149. 'field_name' => 'taxonomy_catalog',
  150. 'label' => 'Catalog',
  151. 'required' => FALSE,
  152. 'settings' => array(
  153. 'entity_translation_sync' => FALSE,
  154. 'user_register_form' => FALSE,
  155. ),
  156. 'widget' => array(
  157. 'module' => 'options',
  158. 'settings' => array(
  159. 'content_taxonomy_opt_groups' => FALSE,
  160. ),
  161. 'type' => 'options_select',
  162. 'weight' => 33,
  163. ),
  164. );
  165. // Exported field_instance: 'node-product-uc_product_image'
  166. $field_instances['node-product-uc_product_image'] = array(
  167. 'bundle' => 'product',
  168. 'deleted' => 0,
  169. 'description' => '',
  170. 'display' => array(
  171. 'bookmark' => array(
  172. 'label' => 'above',
  173. 'settings' => array(),
  174. 'type' => 'hidden',
  175. 'weight' => 0,
  176. ),
  177. 'cardbig' => array(
  178. 'label' => 'above',
  179. 'settings' => array(),
  180. 'type' => 'hidden',
  181. 'weight' => 0,
  182. ),
  183. 'cardfull' => array(
  184. 'label' => 'above',
  185. 'settings' => array(),
  186. 'type' => 'hidden',
  187. 'weight' => 0,
  188. ),
  189. 'cardmedium' => array(
  190. 'label' => 'above',
  191. 'settings' => array(),
  192. 'type' => 'hidden',
  193. 'weight' => 0,
  194. ),
  195. 'cardsmall' => array(
  196. 'label' => 'above',
  197. 'settings' => array(),
  198. 'type' => 'hidden',
  199. 'weight' => 0,
  200. ),
  201. 'default' => array(
  202. 'label' => 'above',
  203. 'module' => 'image',
  204. 'settings' => array(
  205. 'image_link' => '',
  206. 'image_style' => '',
  207. ),
  208. 'type' => 'image',
  209. 'weight' => 1,
  210. ),
  211. 'full' => array(
  212. 'label' => 'hidden',
  213. 'module' => 'uc_product',
  214. 'settings' => array(),
  215. 'type' => 'uc_product_image',
  216. 'weight' => 0,
  217. ),
  218. 'print' => array(
  219. 'label' => 'above',
  220. 'settings' => array(),
  221. 'type' => 'hidden',
  222. 'weight' => 0,
  223. ),
  224. 'teaser' => array(
  225. 'label' => 'hidden',
  226. 'module' => 'uc_product',
  227. 'settings' => array(),
  228. 'type' => 'uc_product_image',
  229. 'weight' => 1,
  230. ),
  231. ),
  232. 'entity_type' => 'node',
  233. 'field_name' => 'uc_product_image',
  234. 'label' => 'Image',
  235. 'required' => FALSE,
  236. 'settings' => array(
  237. 'alt_field' => 0,
  238. 'default_image' => 0,
  239. 'entity_translation_sync' => FALSE,
  240. 'file_directory' => '',
  241. 'file_extensions' => 'png gif jpg jpeg',
  242. 'max_filesize' => '',
  243. 'max_resolution' => '',
  244. 'min_resolution' => '',
  245. 'title_field' => 0,
  246. 'user_register_form' => FALSE,
  247. ),
  248. 'weight' => -2,
  249. 'widget' => array(
  250. 'module' => 'image',
  251. 'settings' => array(
  252. 'preview_image_style' => 'thumbnail',
  253. 'progress_indicator' => 'throbber',
  254. ),
  255. 'type' => 'image_image',
  256. 'weight' => 32,
  257. ),
  258. );
  259. // Exported field_instance: 'taxonomy_term-catalog-synonyms_synonym'
  260. $field_instances['taxonomy_term-catalog-synonyms_synonym'] = array(
  261. 'bundle' => 'catalog',
  262. 'default_value' => NULL,
  263. 'deleted' => 0,
  264. 'description' => '',
  265. 'display' => array(
  266. 'default' => array(
  267. 'label' => 'above',
  268. 'module' => 'text',
  269. 'settings' => array(),
  270. 'type' => 'text_default',
  271. 'weight' => 0,
  272. ),
  273. ),
  274. 'entity_type' => 'taxonomy_term',
  275. 'field_name' => 'synonyms_synonym',
  276. 'label' => 'Synonyms for this term',
  277. 'required' => FALSE,
  278. 'settings' => array(
  279. 'entity_translation_sync' => FALSE,
  280. 'text_processing' => 0,
  281. 'user_register_form' => FALSE,
  282. ),
  283. 'widget' => array(
  284. 'module' => 'text',
  285. 'settings' => array(
  286. 'size' => 60,
  287. ),
  288. 'type' => 'text_textfield',
  289. 'weight' => 31,
  290. ),
  291. );
  292. // Exported field_instance: 'taxonomy_term-catalog-uc_catalog_image'
  293. $field_instances['taxonomy_term-catalog-uc_catalog_image'] = array(
  294. 'bundle' => 'catalog',
  295. 'deleted' => 0,
  296. 'description' => '',
  297. 'display' => array(
  298. 'default' => array(
  299. 'label' => 'above',
  300. 'module' => 'image',
  301. 'settings' => array(
  302. 'image_link' => '',
  303. 'image_style' => '',
  304. ),
  305. 'type' => 'image',
  306. 'weight' => 1,
  307. ),
  308. 'full' => array(
  309. 'label' => 'hidden',
  310. 'module' => 'image',
  311. 'settings' => array(
  312. 'image_link' => 'content',
  313. 'image_style' => 'uc_category',
  314. ),
  315. 'type' => 'image',
  316. 'weight' => 0,
  317. ),
  318. ),
  319. 'entity_type' => 'taxonomy_term',
  320. 'field_name' => 'uc_catalog_image',
  321. 'label' => 'Image',
  322. 'required' => FALSE,
  323. 'settings' => array(
  324. 'alt_field' => 0,
  325. 'default_image' => 0,
  326. 'entity_translation_sync' => FALSE,
  327. 'file_directory' => '',
  328. 'file_extensions' => 'png gif jpg jpeg',
  329. 'max_filesize' => '',
  330. 'max_resolution' => '',
  331. 'min_resolution' => '',
  332. 'title_field' => 0,
  333. 'user_register_form' => FALSE,
  334. ),
  335. 'widget' => array(
  336. 'module' => 'image',
  337. 'settings' => array(
  338. 'preview_image_style' => 'thumbnail',
  339. 'progress_indicator' => 'throbber',
  340. ),
  341. 'type' => 'image_image',
  342. 'weight' => 32,
  343. ),
  344. );
  345. // Translatables
  346. // Included for use with string extractors like potx.
  347. t('Catalog');
  348. t('Description');
  349. t('Image');
  350. t('Synonyms for this term');
  351. return $field_instances;
  352. }