ffdn_common.features.field_instance.inc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <?php
  2. /**
  3. * @file
  4. * ffdn_common.features.field_instance.inc
  5. */
  6. /**
  7. * Implements hook_field_default_field_instances().
  8. */
  9. function ffdn_common_field_default_field_instances() {
  10. $field_instances = array();
  11. // Exported field_instance: 'comment-comment_node_page-comment_body'.
  12. $field_instances['comment-comment_node_page-comment_body'] = array(
  13. 'bundle' => 'comment_node_page',
  14. 'default_value' => NULL,
  15. 'deleted' => 0,
  16. 'description' => '',
  17. 'display' => array(
  18. 'default' => array(
  19. 'label' => 'hidden',
  20. 'module' => 'text',
  21. 'settings' => array(),
  22. 'type' => 'text_default',
  23. 'weight' => 0,
  24. ),
  25. ),
  26. 'entity_type' => 'comment',
  27. 'field_name' => 'comment_body',
  28. 'label' => 'Comment',
  29. 'required' => TRUE,
  30. 'settings' => array(
  31. 'text_processing' => 1,
  32. 'user_register_form' => FALSE,
  33. ),
  34. 'widget' => array(
  35. 'module' => 'text',
  36. 'settings' => array(
  37. 'rows' => 5,
  38. ),
  39. 'type' => 'text_textarea',
  40. 'weight' => 0,
  41. ),
  42. );
  43. // Exported field_instance: 'node-page-body'.
  44. $field_instances['node-page-body'] = array(
  45. 'bundle' => 'page',
  46. 'default_value' => NULL,
  47. 'deleted' => 0,
  48. 'description' => '',
  49. 'display' => array(
  50. 'default' => array(
  51. 'label' => 'hidden',
  52. 'module' => 'text',
  53. 'settings' => array(),
  54. 'type' => 'text_default',
  55. 'weight' => 0,
  56. ),
  57. 'teaser' => array(
  58. 'label' => 'hidden',
  59. 'module' => 'text',
  60. 'settings' => array(
  61. 'trim_length' => 600,
  62. ),
  63. 'type' => 'text_summary_or_trimmed',
  64. 'weight' => 0,
  65. ),
  66. ),
  67. 'entity_type' => 'node',
  68. 'field_name' => 'body',
  69. 'label' => 'Body',
  70. 'required' => FALSE,
  71. 'settings' => array(
  72. 'display_summary' => TRUE,
  73. 'text_processing' => 1,
  74. 'user_register_form' => FALSE,
  75. ),
  76. 'widget' => array(
  77. 'module' => 'text',
  78. 'settings' => array(
  79. 'rows' => 20,
  80. 'summary_rows' => 5,
  81. ),
  82. 'type' => 'text_textarea_with_summary',
  83. 'weight' => -4,
  84. ),
  85. );
  86. // Exported field_instance: 'node-page-field_attachment'.
  87. $field_instances['node-page-field_attachment'] = array(
  88. 'bundle' => 'page',
  89. 'deleted' => 0,
  90. 'description' => 'Vous pouvez joindre des fichiers à la page, si nécessaire.',
  91. 'display' => array(
  92. 'default' => array(
  93. 'label' => 'above',
  94. 'settings' => array(),
  95. 'type' => 'hidden',
  96. 'weight' => 2,
  97. ),
  98. 'teaser' => array(
  99. 'label' => 'above',
  100. 'settings' => array(),
  101. 'type' => 'hidden',
  102. 'weight' => 0,
  103. ),
  104. ),
  105. 'entity_type' => 'node',
  106. 'field_name' => 'field_attachment',
  107. 'label' => 'Pièces jointes',
  108. 'required' => 0,
  109. 'settings' => array(
  110. 'description_field' => 1,
  111. 'file_directory' => 'files',
  112. 'file_extensions' => 'txt pdf odt odf ods doc xls png jpeg jpg gif mp3 mp4 mkv ogg ogv avi',
  113. 'max_filesize' => '',
  114. 'user_register_form' => FALSE,
  115. ),
  116. 'widget' => array(
  117. 'active' => 1,
  118. 'module' => 'file',
  119. 'settings' => array(
  120. 'progress_indicator' => 'throbber',
  121. ),
  122. 'type' => 'file_generic',
  123. 'weight' => 31,
  124. ),
  125. );
  126. // Translatables
  127. // Included for use with string extractors like potx.
  128. t('Body');
  129. t('Comment');
  130. t('Pièces jointes');
  131. t('Vous pouvez joindre des fichiers à la page, si nécessaire.');
  132. return $field_instances;
  133. }