page.features.field_instance.inc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. 'text_processing' => 1,
  42. 'user_register_form' => FALSE,
  43. ),
  44. 'widget' => array(
  45. 'module' => 'text',
  46. 'settings' => array(
  47. 'rows' => 20,
  48. 'summary_rows' => 5,
  49. ),
  50. 'type' => 'text_textarea_with_summary',
  51. 'weight' => -4,
  52. ),
  53. );
  54. // Translatables
  55. // Included for use with string extractors like potx.
  56. t('Body');
  57. return $field_instances;
  58. }