page.features.field_instance.inc 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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' => -4,
  59. ),
  60. );
  61. // Translatables
  62. // Included for use with string extractors like potx.
  63. t('Body');
  64. return $field_instances;
  65. }