feeds_news.features.field_instance.inc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?php
  2. /**
  3. * @file
  4. * feeds_news.features.field_instance.inc
  5. */
  6. /**
  7. * Implements hook_field_default_field_instances().
  8. */
  9. function feeds_news_field_default_field_instances() {
  10. $field_instances = array();
  11. // Exported field_instance: 'node-feed_item-field_feed_item_description'
  12. $field_instances['node-feed_item-field_feed_item_description'] = array(
  13. 'bundle' => 'feed_item',
  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. 'full' => array(
  26. 'label' => 'above',
  27. 'settings' => array(),
  28. 'type' => 'hidden',
  29. 'weight' => 0,
  30. ),
  31. 'rss' => array(
  32. 'label' => 'above',
  33. 'settings' => array(),
  34. 'type' => 'hidden',
  35. 'weight' => 0,
  36. ),
  37. 'teaser' => array(
  38. 'label' => 'hidden',
  39. 'module' => 'text',
  40. 'settings' => array(
  41. 'trim_length' => 600,
  42. ),
  43. 'type' => 'text_trimmed',
  44. 'weight' => 0,
  45. ),
  46. ),
  47. 'entity_type' => 'node',
  48. 'field_name' => 'field_feed_item_description',
  49. 'label' => 'Description',
  50. 'required' => 0,
  51. 'settings' => array(
  52. 'display_summary' => 0,
  53. 'text_processing' => 1,
  54. 'user_register_form' => FALSE,
  55. ),
  56. 'widget' => array(
  57. 'active' => 1,
  58. 'module' => 'text',
  59. 'settings' => array(
  60. 'rows' => 20,
  61. 'summary_rows' => 5,
  62. ),
  63. 'type' => 'text_textarea_with_summary',
  64. 'weight' => -4,
  65. ),
  66. );
  67. // Translatables
  68. // Included for use with string extractors like potx.
  69. t('Description');
  70. return $field_instances;
  71. }