showroom.features.field_instance.inc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. /**
  3. * @file
  4. * showroom.features.field_instance.inc
  5. */
  6. /**
  7. * Implements hook_field_default_field_instances().
  8. */
  9. function showroom_field_default_field_instances() {
  10. $field_instances = array();
  11. // Exported field_instance: 'taxonomy_term-showroom-description_field'.
  12. $field_instances['taxonomy_term-showroom-description_field'] = array(
  13. 'bundle' => 'showroom',
  14. 'default_value' => NULL,
  15. 'deleted' => 0,
  16. 'description' => '',
  17. 'display' => array(
  18. 'default' => array(
  19. 'label' => 'above',
  20. 'settings' => array(),
  21. 'type' => 'hidden',
  22. 'weight' => 1,
  23. ),
  24. ),
  25. 'entity_type' => 'taxonomy_term',
  26. 'field_name' => 'description_field',
  27. 'label' => 'Description',
  28. 'required' => FALSE,
  29. 'settings' => array(
  30. 'display_summary' => 0,
  31. 'entity_translation_sync' => FALSE,
  32. 'hide_label' => array(
  33. 'entity' => 'entity',
  34. 'page' => 'page',
  35. ),
  36. 'text_processing' => 1,
  37. 'user_register_form' => FALSE,
  38. ),
  39. 'widget' => array(
  40. 'module' => 'text',
  41. 'settings' => array(
  42. 'rows' => 20,
  43. 'summary_rows' => 5,
  44. ),
  45. 'type' => 'text_textarea_with_summary',
  46. 'weight' => -5,
  47. ),
  48. );
  49. // Exported field_instance: 'taxonomy_term-showroom-name_field'.
  50. $field_instances['taxonomy_term-showroom-name_field'] = array(
  51. 'bundle' => 'showroom',
  52. 'default_value' => NULL,
  53. 'deleted' => 0,
  54. 'description' => '',
  55. 'display' => array(
  56. 'default' => array(
  57. 'label' => 'above',
  58. 'settings' => array(),
  59. 'type' => 'hidden',
  60. 'weight' => 0,
  61. ),
  62. ),
  63. 'entity_type' => 'taxonomy_term',
  64. 'field_name' => 'name_field',
  65. 'label' => 'Nom',
  66. 'required' => TRUE,
  67. 'settings' => array(
  68. 'entity_translation_sync' => FALSE,
  69. 'hide_label' => array(
  70. 'entity' => 'entity',
  71. 'page' => 'page',
  72. ),
  73. 'text_processing' => 0,
  74. 'user_register_form' => FALSE,
  75. ),
  76. 'widget' => array(
  77. 'module' => 'text',
  78. 'settings' => array(
  79. 'size' => 60,
  80. ),
  81. 'type' => 'text_textfield',
  82. 'weight' => -5,
  83. ),
  84. );
  85. // Translatables
  86. // Included for use with string extractors like potx.
  87. t('Description');
  88. t('Nom');
  89. return $field_instances;
  90. }