page.features.field_instance.inc 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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. 'settings' => array(),
  88. 'type' => 'hidden',
  89. 'weight' => 3,
  90. ),
  91. 'teaser' => array(
  92. 'label' => 'above',
  93. 'settings' => array(),
  94. 'type' => 'hidden',
  95. 'weight' => 0,
  96. ),
  97. ),
  98. 'entity_type' => 'node',
  99. 'field_name' => 'field_images',
  100. 'label' => 'images',
  101. 'required' => 0,
  102. 'settings' => array(
  103. 'alt_field' => 0,
  104. 'default_image' => 0,
  105. 'entity_translation_sync' => FALSE,
  106. 'file_directory' => '',
  107. 'file_extensions' => 'png gif jpg jpeg',
  108. 'max_filesize' => '',
  109. 'max_resolution' => '',
  110. 'min_resolution' => '',
  111. 'title_field' => 0,
  112. 'user_register_form' => FALSE,
  113. ),
  114. 'widget' => array(
  115. 'active' => 1,
  116. 'module' => 'image',
  117. 'settings' => array(
  118. 'insert' => 1,
  119. 'insert_absolute' => 0,
  120. 'insert_class' => '',
  121. 'insert_default' => 'auto',
  122. 'insert_styles' => array(
  123. 'auto' => 'auto',
  124. 'icon_link' => 0,
  125. 'image' => 0,
  126. 'image_large' => 0,
  127. 'image_linkit_thumb' => 0,
  128. 'image_medium' => 0,
  129. 'image_thumbnail' => 0,
  130. 'image_video_thumb_docu' => 0,
  131. 'image_video_thumb_episode' => 0,
  132. 'image_video_thumb_themat' => 0,
  133. 'image_video_thumbnail' => 0,
  134. 'link' => 0,
  135. ),
  136. 'insert_width' => '',
  137. 'preview_image_style' => 'thumbnail',
  138. 'progress_indicator' => 'throbber',
  139. ),
  140. 'type' => 'image_image',
  141. 'weight' => 2,
  142. ),
  143. );
  144. // Translatables
  145. // Included for use with string extractors like potx.
  146. t('Body');
  147. t('images');
  148. return $field_instances;
  149. }