page.features.field_instance.inc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. 'chapter' => 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. 'text_processing' => 1,
  48. 'user_register_form' => FALSE,
  49. ),
  50. 'widget' => array(
  51. 'module' => 'text',
  52. 'settings' => array(
  53. 'rows' => 20,
  54. 'summary_rows' => 5,
  55. ),
  56. 'type' => 'text_textarea_with_summary',
  57. 'weight' => -4,
  58. ),
  59. );
  60. // Exported field_instance: 'node-page-field_fichiers'
  61. $field_instances['node-page-field_fichiers'] = array(
  62. 'bundle' => 'page',
  63. 'deleted' => 0,
  64. 'description' => '',
  65. 'display' => array(
  66. 'chapter' => array(
  67. 'label' => 'above',
  68. 'settings' => array(),
  69. 'type' => 'hidden',
  70. 'weight' => 0,
  71. ),
  72. 'default' => array(
  73. 'label' => 'hidden',
  74. 'settings' => array(),
  75. 'type' => 'hidden',
  76. 'weight' => 1,
  77. ),
  78. 'teaser' => array(
  79. 'label' => 'above',
  80. 'settings' => array(),
  81. 'type' => 'hidden',
  82. 'weight' => 0,
  83. ),
  84. ),
  85. 'entity_type' => 'node',
  86. 'field_name' => 'field_fichiers',
  87. 'label' => 'Fichiers',
  88. 'required' => 0,
  89. 'settings' => array(
  90. 'description_field' => 0,
  91. 'file_directory' => 'fichiers_joinds',
  92. 'file_extensions' => 'txt pdf doc docx csv epub',
  93. 'max_filesize' => '',
  94. 'user_register_form' => FALSE,
  95. ),
  96. 'widget' => array(
  97. 'active' => 1,
  98. 'module' => 'file',
  99. 'settings' => array(
  100. 'insert' => 1,
  101. 'insert_absolute' => 0,
  102. 'insert_class' => '',
  103. 'insert_default' => 'icon_link',
  104. 'insert_styles' => array(
  105. 'auto' => 0,
  106. 'icon_link' => 'icon_link',
  107. 'image' => 0,
  108. 'image_large' => 0,
  109. 'image_linkit_thumb' => 0,
  110. 'image_medium' => 0,
  111. 'image_thumbnail' => 0,
  112. 'link' => 0,
  113. ),
  114. 'insert_width' => '',
  115. 'progress_indicator' => 'throbber',
  116. ),
  117. 'type' => 'file_generic',
  118. 'weight' => 100,
  119. ),
  120. );
  121. // Translatables
  122. // Included for use with string extractors like potx.
  123. t('Body');
  124. t('Fichiers');
  125. return $field_instances;
  126. }