materio_subscriptions.features.field_instance.inc 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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. 'homeblock' => 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' => 'taxonomy',
  131. 'settings' => array(),
  132. 'type' => 'taxonomy_term_reference_link',
  133. 'weight' => 2,
  134. ),
  135. 'homeblock' => array(
  136. 'label' => 'above',
  137. 'settings' => array(),
  138. 'type' => 'hidden',
  139. 'weight' => 0,
  140. ),
  141. 'print' => array(
  142. 'label' => 'above',
  143. 'settings' => array(),
  144. 'type' => 'hidden',
  145. 'weight' => 0,
  146. ),
  147. 'teaser' => array(
  148. 'label' => 'above',
  149. 'settings' => array(),
  150. 'type' => 'hidden',
  151. 'weight' => 0,
  152. ),
  153. ),
  154. 'entity_type' => 'node',
  155. 'field_name' => 'taxonomy_catalog',
  156. 'label' => 'Catalog',
  157. 'required' => FALSE,
  158. 'settings' => array(
  159. 'entity_translation_sync' => FALSE,
  160. 'user_register_form' => FALSE,
  161. ),
  162. 'widget' => array(
  163. 'module' => 'options',
  164. 'settings' => array(
  165. 'content_taxonomy_opt_groups' => FALSE,
  166. ),
  167. 'type' => 'options_select',
  168. 'weight' => 33,
  169. ),
  170. );
  171. // Exported field_instance: 'node-product-uc_product_image'.
  172. $field_instances['node-product-uc_product_image'] = array(
  173. 'bundle' => 'product',
  174. 'deleted' => 0,
  175. 'description' => '',
  176. 'display' => array(
  177. 'bookmark' => array(
  178. 'label' => 'above',
  179. 'settings' => array(),
  180. 'type' => 'hidden',
  181. 'weight' => 0,
  182. ),
  183. 'cardbig' => array(
  184. 'label' => 'above',
  185. 'settings' => array(),
  186. 'type' => 'hidden',
  187. 'weight' => 0,
  188. ),
  189. 'cardfull' => array(
  190. 'label' => 'above',
  191. 'settings' => array(),
  192. 'type' => 'hidden',
  193. 'weight' => 0,
  194. ),
  195. 'cardmedium' => array(
  196. 'label' => 'above',
  197. 'settings' => array(),
  198. 'type' => 'hidden',
  199. 'weight' => 0,
  200. ),
  201. 'cardsmall' => array(
  202. 'label' => 'above',
  203. 'settings' => array(),
  204. 'type' => 'hidden',
  205. 'weight' => 0,
  206. ),
  207. 'default' => array(
  208. 'label' => 'above',
  209. 'module' => 'image',
  210. 'settings' => array(
  211. 'image_link' => '',
  212. 'image_style' => '',
  213. ),
  214. 'type' => 'image',
  215. 'weight' => 1,
  216. ),
  217. 'full' => array(
  218. 'label' => 'hidden',
  219. 'module' => 'uc_product',
  220. 'settings' => array(),
  221. 'type' => 'uc_product_image',
  222. 'weight' => 0,
  223. ),
  224. 'homeblock' => array(
  225. 'label' => 'above',
  226. 'settings' => array(),
  227. 'type' => 'hidden',
  228. 'weight' => 0,
  229. ),
  230. 'teaser' => array(
  231. 'label' => 'hidden',
  232. 'module' => 'uc_product',
  233. 'settings' => array(),
  234. 'type' => 'uc_product_image',
  235. 'weight' => 1,
  236. ),
  237. ),
  238. 'entity_type' => 'node',
  239. 'field_name' => 'uc_product_image',
  240. 'label' => 'Image',
  241. 'required' => FALSE,
  242. 'settings' => array(
  243. 'alt_field' => 0,
  244. 'default_image' => 0,
  245. 'entity_translation_sync' => FALSE,
  246. 'file_directory' => '',
  247. 'file_extensions' => 'png gif jpg jpeg',
  248. 'max_filesize' => '',
  249. 'max_resolution' => '',
  250. 'min_resolution' => '',
  251. 'title_field' => 0,
  252. 'user_register_form' => FALSE,
  253. ),
  254. 'weight' => -2,
  255. 'widget' => array(
  256. 'module' => 'image',
  257. 'settings' => array(
  258. 'preview_image_style' => 'thumbnail',
  259. 'progress_indicator' => 'throbber',
  260. ),
  261. 'type' => 'image_image',
  262. 'weight' => 32,
  263. ),
  264. );
  265. // Exported field_instance: 'taxonomy_term-catalog-synonyms_synonym'.
  266. $field_instances['taxonomy_term-catalog-synonyms_synonym'] = array(
  267. 'bundle' => 'catalog',
  268. 'default_value' => NULL,
  269. 'deleted' => 0,
  270. 'description' => '',
  271. 'display' => array(
  272. 'default' => array(
  273. 'label' => 'above',
  274. 'module' => 'text',
  275. 'settings' => array(),
  276. 'type' => 'text_default',
  277. 'weight' => 0,
  278. ),
  279. ),
  280. 'entity_type' => 'taxonomy_term',
  281. 'field_name' => 'synonyms_synonym',
  282. 'label' => 'Synonyms for this term',
  283. 'required' => FALSE,
  284. 'settings' => array(
  285. 'entity_translation_sync' => FALSE,
  286. 'text_processing' => 0,
  287. 'user_register_form' => FALSE,
  288. ),
  289. 'widget' => array(
  290. 'module' => 'text',
  291. 'settings' => array(
  292. 'size' => 60,
  293. ),
  294. 'type' => 'text_textfield',
  295. 'weight' => 31,
  296. ),
  297. );
  298. // Exported field_instance: 'taxonomy_term-catalog-uc_catalog_image'.
  299. $field_instances['taxonomy_term-catalog-uc_catalog_image'] = array(
  300. 'bundle' => 'catalog',
  301. 'deleted' => 0,
  302. 'description' => '',
  303. 'display' => array(
  304. 'default' => array(
  305. 'label' => 'above',
  306. 'module' => 'image',
  307. 'settings' => array(
  308. 'image_link' => '',
  309. 'image_style' => '',
  310. ),
  311. 'type' => 'image',
  312. 'weight' => 1,
  313. ),
  314. 'full' => array(
  315. 'label' => 'hidden',
  316. 'module' => 'image',
  317. 'settings' => array(
  318. 'image_link' => 'content',
  319. 'image_style' => 'uc_category',
  320. ),
  321. 'type' => 'image',
  322. 'weight' => 0,
  323. ),
  324. ),
  325. 'entity_type' => 'taxonomy_term',
  326. 'field_name' => 'uc_catalog_image',
  327. 'label' => 'Image',
  328. 'required' => FALSE,
  329. 'settings' => array(
  330. 'alt_field' => 0,
  331. 'default_image' => 0,
  332. 'entity_translation_sync' => FALSE,
  333. 'file_directory' => '',
  334. 'file_extensions' => 'png gif jpg jpeg',
  335. 'max_filesize' => '',
  336. 'max_resolution' => '',
  337. 'min_resolution' => '',
  338. 'title_field' => 0,
  339. 'user_register_form' => FALSE,
  340. ),
  341. 'widget' => array(
  342. 'module' => 'image',
  343. 'settings' => array(
  344. 'preview_image_style' => 'thumbnail',
  345. 'progress_indicator' => 'throbber',
  346. ),
  347. 'type' => 'image_image',
  348. 'weight' => 32,
  349. ),
  350. );
  351. // Translatables
  352. // Included for use with string extractors like potx.
  353. t('Catalog');
  354. t('Description');
  355. t('Image');
  356. t('Synonyms for this term');
  357. return $field_instances;
  358. }