page.features.field_instance.inc 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?php
  2. /**
  3. * @file
  4. * page.features.field_instance.inc
  5. */
  6. /**
  7. * Implements hook_field_default_field_instances().
  8. */
  9. function page_field_default_field_instances() {
  10. $field_instances = array();
  11. // Exported field_instance: 'node-page-body'.
  12. $field_instances['node-page-body'] = array(
  13. 'bundle' => 'page',
  14. 'default_value' => NULL,
  15. 'deleted' => 0,
  16. 'description' => '',
  17. 'display' => array(
  18. 'accueil' => array(
  19. 'label' => 'above',
  20. 'settings' => array(),
  21. 'type' => 'hidden',
  22. 'weight' => 0,
  23. ),
  24. 'attente' => array(
  25. 'label' => 'above',
  26. 'settings' => array(),
  27. 'type' => 'hidden',
  28. 'weight' => 0,
  29. ),
  30. 'default' => array(
  31. 'label' => 'hidden',
  32. 'module' => 'text',
  33. 'settings' => array(),
  34. 'type' => 'text_default',
  35. 'weight' => 0,
  36. ),
  37. 'teaser' => array(
  38. 'label' => 'hidden',
  39. 'module' => 'text',
  40. 'settings' => array(
  41. 'trim_length' => 600,
  42. ),
  43. 'type' => 'text_summary_or_trimmed',
  44. 'weight' => 0,
  45. ),
  46. ),
  47. 'entity_type' => 'node',
  48. 'field_name' => 'body',
  49. 'label' => 'Body',
  50. 'required' => FALSE,
  51. 'settings' => array(
  52. 'display_summary' => TRUE,
  53. 'entity_translation_sync' => FALSE,
  54. 'text_processing' => 1,
  55. 'user_register_form' => FALSE,
  56. ),
  57. 'widget' => array(
  58. 'module' => 'text',
  59. 'settings' => array(
  60. 'rows' => 20,
  61. 'summary_rows' => 5,
  62. ),
  63. 'type' => 'text_textarea_with_summary',
  64. 'weight' => 1,
  65. ),
  66. );
  67. // Exported field_instance: 'node-page-field_images'.
  68. $field_instances['node-page-field_images'] = array(
  69. 'bundle' => 'page',
  70. 'deleted' => 0,
  71. 'description' => '',
  72. 'display' => array(
  73. 'accueil' => array(
  74. 'label' => 'above',
  75. 'settings' => array(),
  76. 'type' => 'hidden',
  77. 'weight' => 0,
  78. ),
  79. 'attente' => array(
  80. 'label' => 'above',
  81. 'settings' => array(),
  82. 'type' => 'hidden',
  83. 'weight' => 0,
  84. ),
  85. 'default' => array(
  86. 'label' => 'above',
  87. 'module' => 'image',
  88. 'settings' => array(
  89. 'image_link' => '',
  90. 'image_style' => '',
  91. ),
  92. 'type' => 'image',
  93. 'weight' => 1,
  94. ),
  95. 'teaser' => array(
  96. 'label' => 'above',
  97. 'settings' => array(),
  98. 'type' => 'hidden',
  99. 'weight' => 0,
  100. ),
  101. ),
  102. 'entity_type' => 'node',
  103. 'field_name' => 'field_images',
  104. 'label' => 'images',
  105. 'required' => 0,
  106. 'settings' => array(
  107. 'alt_field' => 0,
  108. 'default_image' => 0,
  109. 'entity_translation_sync' => FALSE,
  110. 'file_directory' => '',
  111. 'file_extensions' => 'png gif jpg jpeg',
  112. 'max_filesize' => '',
  113. 'max_resolution' => '',
  114. 'min_resolution' => '',
  115. 'title_field' => 0,
  116. 'user_register_form' => FALSE,
  117. ),
  118. 'widget' => array(
  119. 'active' => 1,
  120. 'module' => 'image',
  121. 'settings' => array(
  122. 'insert' => 1,
  123. 'insert_absolute' => 0,
  124. 'insert_class' => '',
  125. 'insert_default' => 'auto',
  126. 'insert_styles' => array(
  127. 'auto' => 'auto',
  128. 'icon_link' => 0,
  129. 'image' => 0,
  130. 'image_large' => 0,
  131. 'image_linkit_thumb' => 0,
  132. 'image_medium' => 0,
  133. 'image_thumbnail' => 0,
  134. 'image_video_thumb_docu' => 0,
  135. 'image_video_thumb_episode' => 0,
  136. 'image_video_thumb_themat' => 0,
  137. 'image_video_thumbnail' => 0,
  138. 'link' => 0,
  139. ),
  140. 'insert_width' => '',
  141. 'preview_image_style' => 'thumbnail',
  142. 'progress_indicator' => 'throbber',
  143. ),
  144. 'type' => 'image_image',
  145. 'weight' => 2,
  146. ),
  147. );
  148. // Translatables
  149. // Included for use with string extractors like potx.
  150. t('Body');
  151. t('images');
  152. return $field_instances;
  153. }