page.features.field_instance.inc 1.5 KB

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