materio_subscriptions.features.field.inc 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529
  1. <?php
  2. /**
  3. * @file
  4. * materio_subscriptions.features.field.inc
  5. */
  6. /**
  7. * Implements hook_field_default_fields().
  8. */
  9. function materio_subscriptions_field_default_fields() {
  10. $fields = array();
  11. // Exported field: 'node-product-body'.
  12. $fields['node-product-body'] = array(
  13. 'field_config' => array(
  14. 'active' => '1',
  15. 'cardinality' => '1',
  16. 'deleted' => '0',
  17. 'entity_types' => array(
  18. 0 => 'node',
  19. ),
  20. 'field_name' => 'body',
  21. 'field_permissions' => array(
  22. 'type' => '0',
  23. ),
  24. 'foreign keys' => array(
  25. 'format' => array(
  26. 'columns' => array(
  27. 'format' => 'format',
  28. ),
  29. 'table' => 'filter_format',
  30. ),
  31. ),
  32. 'indexes' => array(
  33. 'format' => array(
  34. 0 => 'format',
  35. ),
  36. ),
  37. 'locked' => '0',
  38. 'module' => 'text',
  39. 'settings' => array(
  40. 'entity_translation_sync' => FALSE,
  41. 'profile2_private' => FALSE,
  42. ),
  43. 'translatable' => '1',
  44. 'type' => 'text_with_summary',
  45. ),
  46. 'field_instance' => array(
  47. 'bundle' => 'product',
  48. 'default_value' => NULL,
  49. 'deleted' => '0',
  50. 'description' => '',
  51. 'display' => array(
  52. 'bookmark' => array(
  53. 'label' => 'above',
  54. 'settings' => array(),
  55. 'type' => 'hidden',
  56. 'weight' => 0,
  57. ),
  58. 'cardbig' => array(
  59. 'label' => 'above',
  60. 'settings' => array(),
  61. 'type' => 'hidden',
  62. 'weight' => 0,
  63. ),
  64. 'cardfull' => array(
  65. 'label' => 'above',
  66. 'settings' => array(),
  67. 'type' => 'hidden',
  68. 'weight' => 0,
  69. ),
  70. 'cardmedium' => array(
  71. 'label' => 'above',
  72. 'settings' => array(),
  73. 'type' => 'hidden',
  74. 'weight' => 0,
  75. ),
  76. 'cardsmall' => array(
  77. 'label' => 'above',
  78. 'settings' => array(),
  79. 'type' => 'hidden',
  80. 'weight' => 0,
  81. ),
  82. 'default' => array(
  83. 'label' => 'hidden',
  84. 'module' => 'text',
  85. 'settings' => array(),
  86. 'type' => 'text_default',
  87. 'weight' => 0,
  88. ),
  89. 'print' => array(
  90. 'label' => 'above',
  91. 'settings' => array(),
  92. 'type' => 'hidden',
  93. 'weight' => 0,
  94. ),
  95. 'teaser' => array(
  96. 'label' => 'hidden',
  97. 'module' => 'text',
  98. 'settings' => array(
  99. 'trim_length' => 600,
  100. ),
  101. 'type' => 'text_summary_or_trimmed',
  102. 'weight' => 0,
  103. ),
  104. ),
  105. 'entity_type' => 'node',
  106. 'field_name' => 'body',
  107. 'label' => 'Description',
  108. 'required' => FALSE,
  109. 'settings' => array(
  110. 'display_summary' => TRUE,
  111. 'entity_translation_sync' => FALSE,
  112. 'text_processing' => 1,
  113. 'user_register_form' => FALSE,
  114. ),
  115. 'widget' => array(
  116. 'module' => 'text',
  117. 'settings' => array(
  118. 'rows' => 20,
  119. 'summary_rows' => 5,
  120. ),
  121. 'type' => 'text_textarea_with_summary',
  122. 'weight' => 31,
  123. ),
  124. ),
  125. );
  126. // Exported field: 'node-product-taxonomy_catalog'.
  127. $fields['node-product-taxonomy_catalog'] = array(
  128. 'field_config' => array(
  129. 'active' => '1',
  130. 'cardinality' => '-1',
  131. 'deleted' => '0',
  132. 'entity_types' => array(),
  133. 'field_name' => 'taxonomy_catalog',
  134. 'foreign keys' => array(
  135. 'tid' => array(
  136. 'columns' => array(
  137. 'tid' => 'tid',
  138. ),
  139. 'table' => 'taxonomy_term_data',
  140. ),
  141. ),
  142. 'indexes' => array(
  143. 'tid' => array(
  144. 0 => 'tid',
  145. ),
  146. ),
  147. 'locked' => '0',
  148. 'module' => 'taxonomy',
  149. 'settings' => array(
  150. 'allowed_values' => array(
  151. 0 => array(
  152. 'vocabulary' => 'catalog',
  153. 'parent' => 0,
  154. ),
  155. ),
  156. 'entity_translation_sync' => FALSE,
  157. 'options_list_callback' => 'i18n_taxonomy_allowed_values',
  158. ),
  159. 'translatable' => '0',
  160. 'type' => 'taxonomy_term_reference',
  161. ),
  162. 'field_instance' => array(
  163. 'bundle' => 'product',
  164. 'default_value' => NULL,
  165. 'deleted' => '0',
  166. 'description' => '',
  167. 'display' => array(
  168. 'bookmark' => array(
  169. 'label' => 'above',
  170. 'settings' => array(),
  171. 'type' => 'hidden',
  172. 'weight' => 0,
  173. ),
  174. 'cardbig' => array(
  175. 'label' => 'above',
  176. 'settings' => array(),
  177. 'type' => 'hidden',
  178. 'weight' => 0,
  179. ),
  180. 'cardfull' => array(
  181. 'label' => 'above',
  182. 'settings' => array(),
  183. 'type' => 'hidden',
  184. 'weight' => 0,
  185. ),
  186. 'cardmedium' => array(
  187. 'label' => 'above',
  188. 'settings' => array(),
  189. 'type' => 'hidden',
  190. 'weight' => 0,
  191. ),
  192. 'cardsmall' => array(
  193. 'label' => 'above',
  194. 'settings' => array(),
  195. 'type' => 'hidden',
  196. 'weight' => 0,
  197. ),
  198. 'default' => array(
  199. 'label' => 'above',
  200. 'module' => 'i18n_taxonomy',
  201. 'settings' => array(),
  202. 'type' => 'i18n_taxonomy_term_reference_link',
  203. 'weight' => 2,
  204. ),
  205. 'print' => array(
  206. 'label' => 'above',
  207. 'settings' => array(),
  208. 'type' => 'hidden',
  209. 'weight' => 0,
  210. ),
  211. 'teaser' => array(
  212. 'label' => 'above',
  213. 'settings' => array(),
  214. 'type' => 'hidden',
  215. 'weight' => 0,
  216. ),
  217. ),
  218. 'entity_type' => 'node',
  219. 'field_name' => 'taxonomy_catalog',
  220. 'label' => 'Catalog',
  221. 'required' => FALSE,
  222. 'settings' => array(
  223. 'entity_translation_sync' => FALSE,
  224. 'user_register_form' => FALSE,
  225. ),
  226. 'widget' => array(
  227. 'module' => 'options',
  228. 'settings' => array(),
  229. 'type' => 'options_select',
  230. 'weight' => 33,
  231. ),
  232. ),
  233. );
  234. // Exported field: 'node-product-uc_product_image'.
  235. $fields['node-product-uc_product_image'] = array(
  236. 'field_config' => array(
  237. 'active' => '1',
  238. 'cardinality' => '-1',
  239. 'deleted' => '0',
  240. 'entity_types' => array(),
  241. 'field_name' => 'uc_product_image',
  242. 'foreign keys' => array(
  243. 'fid' => array(
  244. 'columns' => array(
  245. 'fid' => 'fid',
  246. ),
  247. 'table' => 'file_managed',
  248. ),
  249. ),
  250. 'indexes' => array(
  251. 'fid' => array(
  252. 0 => 'fid',
  253. ),
  254. ),
  255. 'locked' => '0',
  256. 'module' => 'image',
  257. 'settings' => array(
  258. 'default_image' => 0,
  259. 'entity_translation_sync' => array(
  260. 0 => 'fid',
  261. ),
  262. 'uri_scheme' => 'public',
  263. ),
  264. 'translatable' => '0',
  265. 'type' => 'image',
  266. ),
  267. 'field_instance' => array(
  268. 'bundle' => 'product',
  269. 'deleted' => '0',
  270. 'description' => '',
  271. 'display' => array(
  272. 'bookmark' => array(
  273. 'label' => 'above',
  274. 'settings' => array(),
  275. 'type' => 'hidden',
  276. 'weight' => 0,
  277. ),
  278. 'cardbig' => array(
  279. 'label' => 'above',
  280. 'settings' => array(),
  281. 'type' => 'hidden',
  282. 'weight' => 0,
  283. ),
  284. 'cardfull' => array(
  285. 'label' => 'above',
  286. 'settings' => array(),
  287. 'type' => 'hidden',
  288. 'weight' => 0,
  289. ),
  290. 'cardmedium' => array(
  291. 'label' => 'above',
  292. 'settings' => array(),
  293. 'type' => 'hidden',
  294. 'weight' => 0,
  295. ),
  296. 'cardsmall' => array(
  297. 'label' => 'above',
  298. 'settings' => array(),
  299. 'type' => 'hidden',
  300. 'weight' => 0,
  301. ),
  302. 'default' => array(
  303. 'label' => 'above',
  304. 'module' => 'image',
  305. 'settings' => array(
  306. 'image_link' => '',
  307. 'image_style' => '',
  308. ),
  309. 'type' => 'image',
  310. 'weight' => 1,
  311. ),
  312. 'full' => array(
  313. 'label' => 'hidden',
  314. 'module' => 'uc_product',
  315. 'settings' => array(),
  316. 'type' => 'uc_product_image',
  317. 'weight' => 0,
  318. ),
  319. 'print' => array(
  320. 'label' => 'above',
  321. 'settings' => array(),
  322. 'type' => 'hidden',
  323. 'weight' => 0,
  324. ),
  325. 'teaser' => array(
  326. 'label' => 'hidden',
  327. 'module' => 'uc_product',
  328. 'settings' => array(),
  329. 'type' => 'uc_product_image',
  330. 'weight' => 1,
  331. ),
  332. ),
  333. 'entity_type' => 'node',
  334. 'field_name' => 'uc_product_image',
  335. 'label' => 'Image',
  336. 'required' => FALSE,
  337. 'settings' => array(
  338. 'alt_field' => 0,
  339. 'default_image' => 0,
  340. 'entity_translation_sync' => FALSE,
  341. 'file_directory' => '',
  342. 'file_extensions' => 'png gif jpg jpeg',
  343. 'max_filesize' => '',
  344. 'max_resolution' => '',
  345. 'min_resolution' => '',
  346. 'title_field' => 0,
  347. 'user_register_form' => FALSE,
  348. ),
  349. 'weight' => -2,
  350. 'widget' => array(
  351. 'module' => 'image',
  352. 'settings' => array(
  353. 'preview_image_style' => 'thumbnail',
  354. 'progress_indicator' => 'throbber',
  355. ),
  356. 'type' => 'image_image',
  357. 'weight' => 32,
  358. ),
  359. ),
  360. );
  361. // Exported field: 'taxonomy_term-catalog-synonyms_synonym'.
  362. $fields['taxonomy_term-catalog-synonyms_synonym'] = array(
  363. 'field_config' => array(
  364. 'active' => '1',
  365. 'cardinality' => '-1',
  366. 'deleted' => '0',
  367. 'entity_types' => array(),
  368. 'field_name' => 'synonyms_synonym',
  369. 'field_permissions' => array(
  370. 'type' => '0',
  371. ),
  372. 'foreign keys' => array(
  373. 'format' => array(
  374. 'columns' => array(
  375. 'format' => 'format',
  376. ),
  377. 'table' => 'filter_format',
  378. ),
  379. ),
  380. 'indexes' => array(
  381. 'format' => array(
  382. 0 => 'format',
  383. ),
  384. ),
  385. 'locked' => '0',
  386. 'module' => 'text',
  387. 'settings' => array(
  388. 'entity_translation_sync' => FALSE,
  389. 'max_length' => 255,
  390. 'profile2_private' => FALSE,
  391. ),
  392. 'translatable' => '1',
  393. 'type' => 'text',
  394. ),
  395. 'field_instance' => array(
  396. 'bundle' => 'catalog',
  397. 'default_value' => NULL,
  398. 'deleted' => '0',
  399. 'description' => '',
  400. 'display' => array(
  401. 'default' => array(
  402. 'label' => 'above',
  403. 'module' => 'text',
  404. 'settings' => array(),
  405. 'type' => 'text_default',
  406. 'weight' => 0,
  407. ),
  408. ),
  409. 'entity_type' => 'taxonomy_term',
  410. 'field_name' => 'synonyms_synonym',
  411. 'label' => 'Synonyms for this term',
  412. 'required' => FALSE,
  413. 'settings' => array(
  414. 'entity_translation_sync' => FALSE,
  415. 'text_processing' => 0,
  416. 'user_register_form' => FALSE,
  417. ),
  418. 'widget' => array(
  419. 'module' => 'text',
  420. 'settings' => array(
  421. 'size' => 60,
  422. ),
  423. 'type' => 'text_textfield',
  424. 'weight' => 31,
  425. ),
  426. ),
  427. );
  428. // Exported field: 'taxonomy_term-catalog-uc_catalog_image'.
  429. $fields['taxonomy_term-catalog-uc_catalog_image'] = array(
  430. 'field_config' => array(
  431. 'active' => '1',
  432. 'cardinality' => '1',
  433. 'deleted' => '0',
  434. 'entity_types' => array(),
  435. 'field_name' => 'uc_catalog_image',
  436. 'foreign keys' => array(
  437. 'fid' => array(
  438. 'columns' => array(
  439. 'fid' => 'fid',
  440. ),
  441. 'table' => 'file_managed',
  442. ),
  443. ),
  444. 'indexes' => array(
  445. 'fid' => array(
  446. 0 => 'fid',
  447. ),
  448. ),
  449. 'locked' => '0',
  450. 'module' => 'image',
  451. 'settings' => array(
  452. 'default_image' => 0,
  453. 'entity_translation_sync' => array(
  454. 0 => 'fid',
  455. ),
  456. 'uri_scheme' => 'public',
  457. ),
  458. 'translatable' => '0',
  459. 'type' => 'image',
  460. ),
  461. 'field_instance' => array(
  462. 'bundle' => 'catalog',
  463. 'deleted' => '0',
  464. 'description' => '',
  465. 'display' => array(
  466. 'default' => array(
  467. 'label' => 'above',
  468. 'module' => 'image',
  469. 'settings' => array(
  470. 'image_link' => '',
  471. 'image_style' => '',
  472. ),
  473. 'type' => 'image',
  474. 'weight' => 1,
  475. ),
  476. 'full' => array(
  477. 'label' => 'hidden',
  478. 'module' => 'image',
  479. 'settings' => array(
  480. 'image_link' => 'content',
  481. 'image_style' => 'uc_category',
  482. ),
  483. 'type' => 'image',
  484. 'weight' => 0,
  485. ),
  486. ),
  487. 'entity_type' => 'taxonomy_term',
  488. 'field_name' => 'uc_catalog_image',
  489. 'label' => 'Image',
  490. 'required' => FALSE,
  491. 'settings' => array(
  492. 'alt_field' => 0,
  493. 'default_image' => 0,
  494. 'entity_translation_sync' => FALSE,
  495. 'file_directory' => '',
  496. 'file_extensions' => 'png gif jpg jpeg',
  497. 'max_filesize' => '',
  498. 'max_resolution' => '',
  499. 'min_resolution' => '',
  500. 'title_field' => 0,
  501. 'user_register_form' => FALSE,
  502. ),
  503. 'widget' => array(
  504. 'module' => 'image',
  505. 'settings' => array(
  506. 'preview_image_style' => 'thumbnail',
  507. 'progress_indicator' => 'throbber',
  508. ),
  509. 'type' => 'image_image',
  510. 'weight' => 32,
  511. ),
  512. ),
  513. );
  514. // Translatables
  515. // Included for use with string extractors like potx.
  516. t('Catalog');
  517. t('Description');
  518. t('Image');
  519. t('Synonyms for this term');
  520. return $fields;
  521. }