page.features.field_instance.inc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. 'default' => array(
  19. 'label' => 'hidden',
  20. 'module' => 'text',
  21. 'settings' => array(),
  22. 'type' => 'text_default',
  23. 'weight' => 0,
  24. ),
  25. 'teaser' => array(
  26. 'label' => 'hidden',
  27. 'module' => 'text',
  28. 'settings' => array(
  29. 'trim_length' => 600,
  30. ),
  31. 'type' => 'text_summary_or_trimmed',
  32. 'weight' => 0,
  33. ),
  34. ),
  35. 'entity_type' => 'node',
  36. 'field_name' => 'body',
  37. 'label' => 'Body',
  38. 'required' => FALSE,
  39. 'settings' => array(
  40. 'display_summary' => TRUE,
  41. 'entity_translation_sync' => FALSE,
  42. 'text_processing' => 1,
  43. 'user_register_form' => FALSE,
  44. ),
  45. 'widget' => array(
  46. 'module' => 'text',
  47. 'settings' => array(
  48. 'rows' => 20,
  49. 'summary_rows' => 5,
  50. ),
  51. 'type' => 'text_textarea_with_summary',
  52. 'weight' => -4,
  53. ),
  54. );
  55. // Translatables
  56. // Included for use with string extractors like potx.
  57. t('Body');
  58. return $field_instances;
  59. }