From d7ba6133fb8f2264c6d30376ab06d01e915a0abc Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Wed, 28 Oct 2009 01:12:47 +0000
Subject: [PATCH] Add descriptions to FeedsSyndicationParser.

---
 plugins/FeedsNodeProcessor.inc     |  2 +-
 plugins/FeedsSyndicationParser.inc | 35 ++++++++++++++++++++++++------
 2 files changed, 29 insertions(+), 8 deletions(-)

diff --git a/plugins/FeedsNodeProcessor.inc b/plugins/FeedsNodeProcessor.inc
index 753920b1..21e95c34 100644
--- a/plugins/FeedsNodeProcessor.inc
+++ b/plugins/FeedsNodeProcessor.inc
@@ -229,7 +229,7 @@ class FeedsNodeProcessor extends FeedsProcessor {
     $targets = array(
       'title' => array(
         'name' => t('Title'),
-        'description' => t('The title of the node'),
+        'description' => t('The title of the node.'),
        ),
       'status' => array(
         'name' => t('Published status'),
diff --git a/plugins/FeedsSyndicationParser.inc b/plugins/FeedsSyndicationParser.inc
index 4ed5a6df..1e3236be 100644
--- a/plugins/FeedsSyndicationParser.inc
+++ b/plugins/FeedsSyndicationParser.inc
@@ -31,13 +31,34 @@ class FeedsSyndicationParser extends FeedsParser {
    */
   public function getMappingSources() {
     return array(
-      'title' => t('Title'),
-      'description' => t('Description'),
-      'author' => t('Author'),
-      'timestamp' => t('Published date'),
-      'url' => t('Item URL (link)'),
-      'guid' => t('Item GUID'),
-      'tags' => t('Categories'),
+      'title' => array(
+        'name' => t('Title'),
+        'description' => t('The title of the feed item.'),
+      ),
+      'description' => array(
+        'name' => t('Description'),
+        'description' => t('Description of the feed item.'),
+      ),
+      'author' => array(
+        'name' => t('Author'),
+        'description' => t('Author of the feed item (string).'),
+      ),
+      'timestamp' => array(
+        'name' => t('Published date'),
+        'description' => t('The published date as UNIX time GMT of the feed item.'),
+      ),
+      'url' => array(
+        'name' => t('Item URL (link)'),
+        'description' => t('The URLl of the feed item.'),
+      ),
+      'guid' => array(
+        'name' => t('Item GUID'),
+        'description' => t('The Global Unique Identifier of the feed item.'),
+      ),
+      'tags' => array(
+        'name' => t('Categories'),
+        'description' => t('An array of categories that have been assigned to the feed item.'),
+      ),
      );
   }
 }
\ No newline at end of file
-- 
GitLab