materio_subscriptions.features.field_instance.inc 8.7 KB

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