feeds_news.features.field.inc 2.5 KB

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