page.features.field_instance.inc 3.6 KB

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