From 368cc661e518731b1a6fd11d9cf2770b1f6ffdc4 Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Tue, 5 Oct 2010 20:36:50 +0000
Subject: [PATCH] Fix Feeds News tests, add a 'description' field to the  Feeds
 Item content   type.

---
 feeds_news/feeds_news.features.field.inc | 81 ++++++++++++++++++++++++
 1 file changed, 81 insertions(+)
 create mode 100644 feeds_news/feeds_news.features.field.inc

diff --git a/feeds_news/feeds_news.features.field.inc b/feeds_news/feeds_news.features.field.inc
new file mode 100644
index 00000000..7fcb78b3
--- /dev/null
+++ b/feeds_news/feeds_news.features.field.inc
@@ -0,0 +1,81 @@
+<?php
+
+/**
+ * Implementation of hook_field_default_fields().
+ */
+function feeds_news_field_default_fields() {
+  $fields = array();
+
+  // Exported field: 'node-feed_item-field_feed_item_description'
+  $fields['node-feed_item-field_feed_item_description'] = array(
+    'field_config' => array(
+      'active' => '1',
+      'cardinality' => '1',
+      'deleted' => '0',
+      'entity_types' => array(),
+      'field_name' => 'field_feed_item_description',
+      'indexes' => array(
+        'format' => array(
+          '0' => 'format',
+        ),
+      ),
+      'module' => 'text',
+      'settings' => array(),
+      'translatable' => '1',
+      'type' => 'text_with_summary',
+    ),
+    'field_instance' => array(
+      'bundle' => 'feed_item',
+      'default_value' => NULL,
+      'deleted' => '0',
+      'description' => '',
+      'display' => array(
+        'default' => array(
+          'label' => 'above',
+          'module' => 'text',
+          'settings' => array(),
+          'type' => 'text_default',
+          'weight' => 0,
+        ),
+        'full' => array(
+          'label' => 'above',
+          'settings' => array(),
+          'type' => 'hidden',
+          'weight' => 0,
+        ),
+        'rss' => array(
+          'label' => 'above',
+          'settings' => array(),
+          'type' => 'hidden',
+          'weight' => 0,
+        ),
+        'teaser' => array(
+          'label' => 'above',
+          'settings' => array(),
+          'type' => 'hidden',
+          'weight' => 0,
+        ),
+      ),
+      'entity_type' => 'node',
+      'field_name' => 'field_feed_item_description',
+      'label' => 'Description',
+      'required' => 0,
+      'settings' => array(
+        'display_summary' => 0,
+        'text_processing' => '1',
+      ),
+      'widget' => array(
+        'active' => 1,
+        'module' => 'text',
+        'settings' => array(
+          'rows' => '20',
+          'summary_rows' => 5,
+        ),
+        'type' => 'text_textarea_with_summary',
+        'weight' => '-4',
+      ),
+    ),
+  );
+
+  return $fields;
+}
-- 
GitLab