materio_personal_notes.features.field_instance.inc 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. <?php
  2. /**
  3. * @file
  4. * materio_personal_notes.features.field_instance.inc
  5. */
  6. /**
  7. * Implements hook_field_default_field_instances().
  8. */
  9. function materio_personal_notes_field_default_field_instances() {
  10. $field_instances = array();
  11. // Exported field_instance: 'node-note-field_personal_note'.
  12. $field_instances['node-note-field_personal_note'] = array(
  13. 'bundle' => 'note',
  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_plain',
  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' => 'above',
  63. 'settings' => array(),
  64. 'type' => 'hidden',
  65. 'weight' => 0,
  66. ),
  67. ),
  68. 'entity_type' => 'node',
  69. 'field_name' => 'field_personal_note',
  70. 'label' => 'Note',
  71. 'required' => 0,
  72. 'settings' => array(
  73. 'entity_translation_sync' => FALSE,
  74. 'text_processing' => 0,
  75. 'user_register_form' => FALSE,
  76. ),
  77. 'widget' => array(
  78. 'active' => 1,
  79. 'module' => 'text',
  80. 'settings' => array(
  81. 'rows' => 5,
  82. ),
  83. 'type' => 'text_textarea',
  84. 'weight' => 2,
  85. ),
  86. );
  87. // Exported field_instance: 'node-note-field_target_content'.
  88. $field_instances['node-note-field_target_content'] = array(
  89. 'bundle' => 'note',
  90. 'default_value' => NULL,
  91. 'deleted' => 0,
  92. 'description' => '',
  93. 'display' => array(
  94. 'bookmark' => array(
  95. 'label' => 'above',
  96. 'settings' => array(),
  97. 'type' => 'hidden',
  98. 'weight' => 0,
  99. ),
  100. 'cardbig' => array(
  101. 'label' => 'above',
  102. 'settings' => array(),
  103. 'type' => 'hidden',
  104. 'weight' => 0,
  105. ),
  106. 'cardfull' => array(
  107. 'label' => 'above',
  108. 'settings' => array(),
  109. 'type' => 'hidden',
  110. 'weight' => 0,
  111. ),
  112. 'cardmedium' => array(
  113. 'label' => 'above',
  114. 'settings' => array(),
  115. 'type' => 'hidden',
  116. 'weight' => 0,
  117. ),
  118. 'cardsmall' => array(
  119. 'label' => 'above',
  120. 'settings' => array(),
  121. 'type' => 'hidden',
  122. 'weight' => 0,
  123. ),
  124. 'default' => array(
  125. 'label' => 'above',
  126. 'settings' => array(),
  127. 'type' => 'hidden',
  128. 'weight' => 1,
  129. ),
  130. 'homeblock' => array(
  131. 'label' => 'above',
  132. 'settings' => array(),
  133. 'type' => 'hidden',
  134. 'weight' => 0,
  135. ),
  136. 'teaser' => array(
  137. 'label' => 'above',
  138. 'settings' => array(),
  139. 'type' => 'hidden',
  140. 'weight' => 0,
  141. ),
  142. ),
  143. 'entity_type' => 'node',
  144. 'field_name' => 'field_target_content',
  145. 'label' => 'Target content',
  146. 'required' => 1,
  147. 'settings' => array(
  148. 'entity_translation_sync' => FALSE,
  149. 'user_register_form' => FALSE,
  150. ),
  151. 'widget' => array(
  152. 'active' => 1,
  153. 'module' => 'field_extrawidgets',
  154. 'settings' => array(),
  155. 'type' => 'field_extrawidgets_hidden',
  156. 'weight' => 1,
  157. ),
  158. );
  159. // Translatables
  160. // Included for use with string extractors like potx.
  161. t('Note');
  162. t('Target content');
  163. return $field_instances;
  164. }