migrate_extras_pathauto.features.field.inc 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  1. <?php
  2. /**
  3. * Implementation of hook_field_default_fields().
  4. */
  5. function migrate_extras_pathauto_field_default_fields() {
  6. $fields = array();
  7. // Exported field: 'node-migrate_example_pathauto-body'
  8. $fields['node-migrate_example_pathauto-body'] = array(
  9. 'field_config' => array(
  10. 'active' => '1',
  11. 'cardinality' => '1',
  12. 'deleted' => '0',
  13. 'entity_types' => array(
  14. '0' => 'node',
  15. ),
  16. 'field_name' => 'body',
  17. 'foreign keys' => array(
  18. 'format' => array(
  19. 'columns' => array(
  20. 'format' => 'format',
  21. ),
  22. 'table' => 'filter_format',
  23. ),
  24. ),
  25. 'indexes' => array(
  26. 'format' => array(
  27. '0' => 'format',
  28. ),
  29. ),
  30. 'module' => 'text',
  31. 'settings' => array(),
  32. 'translatable' => '1',
  33. 'type' => 'text_with_summary',
  34. ),
  35. 'field_instance' => array(
  36. 'bundle' => 'migrate_example_pathauto',
  37. 'default_value' => NULL,
  38. 'deleted' => '0',
  39. 'description' => '',
  40. 'display' => array(
  41. 'default' => array(
  42. 'label' => 'hidden',
  43. 'module' => 'text',
  44. 'settings' => array(),
  45. 'type' => 'text_default',
  46. 'weight' => 0,
  47. ),
  48. 'teaser' => array(
  49. 'label' => 'hidden',
  50. 'module' => 'text',
  51. 'settings' => array(
  52. 'trim_length' => 600,
  53. ),
  54. 'type' => 'text_summary_or_trimmed',
  55. 'weight' => 0,
  56. ),
  57. ),
  58. 'entity_type' => 'node',
  59. 'field_name' => 'body',
  60. 'label' => 'Body',
  61. 'required' => FALSE,
  62. 'settings' => array(
  63. 'display_summary' => TRUE,
  64. 'text_processing' => 1,
  65. 'user_register_form' => FALSE,
  66. ),
  67. 'widget' => array(
  68. 'module' => 'text',
  69. 'settings' => array(
  70. 'rows' => 20,
  71. 'summary_rows' => 5,
  72. ),
  73. 'type' => 'text_textarea_with_summary',
  74. 'weight' => -4,
  75. ),
  76. ),
  77. );
  78. // Translatables
  79. // Included for use with string extractors like potx.
  80. t('Body');
  81. return $fields;
  82. }