From cc400b027d77f0b034a00bda38295f699425559e Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Mon, 2 Nov 2009 20:01:25 +0000
Subject: [PATCH] #616486 Add descriptions to SimplePie parser mapping sources.

---
 plugins/FeedsSimplePieParser.inc | 66 +++++++++++++++++++++++++-------
 1 file changed, 52 insertions(+), 14 deletions(-)

diff --git a/plugins/FeedsSimplePieParser.inc b/plugins/FeedsSimplePieParser.inc
index 227996ed..351bb567 100644
--- a/plugins/FeedsSimplePieParser.inc
+++ b/plugins/FeedsSimplePieParser.inc
@@ -105,20 +105,58 @@ class FeedsSimplePieParser extends FeedsParser {
    */
   public function getMappingSources() {
     return array(
-      'title' => t('Title'),
-      'description' => t('Description'),
-      'author_name' => t('Author name'),
-      'author_link' => t('Author link'),
-      'author_email' => t('Author email'),
-      'timestamp' => t('Published date'),
-      'date_raw' => t('Published date (raw)'),
-      'url' => t('Item URL (link)'),
-      'guid' => t('Item GUID'),
-      'tags' => t('Categories'),
-      'domains' => t('Category domains'),
-      'location_latitude' => t('Latitudes'),
-      'location_longitude' => t('Longitudes'),
-      'enclosures' => t('Enclosures'),
+      'title' => array(
+        'name' => t('Title'),
+        'description' => t('Title of the feed item.'),
+      ),
+      'description' => array(
+        'name' => t('Description'),
+        'description' => t('Description of the feed item.'),
+      ),
+      'author_name' => array(
+        'name' => t('Author name'),
+        'description' => t('Name of the feed item\'s author.'),
+      ),
+      'author_link' => array(
+        'name' => t('Author link'),
+        'description' => t('Link to the feed item\'s author.'),
+      ),
+      'author_email' => array(
+        'name' => t('Author email'),
+        'description' => t('Email address of the feed item\'s author.'),
+      ),
+      'timestamp' => array(
+        'name' => t('Published date'),
+        'description' => t('Published date as UNIX time GMT of the feed item.'),
+      ),
+      'url' => array(
+        'name' => t('Item URL (link)'),
+        'description' => t('URL of the feed item.'),
+      ),
+      'guid' => array(
+        'name' => t('Item GUID'),
+        'description' => t('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.'),
+      ),
+      'domains' => array(
+        'name' => t('Category domains'),
+        'description' => t('Domains of the categories.'),
+      ),
+      'location_latitude' => array(
+        'name' => t('Latitudes'),
+        'description' => t('An array of latitudes assigned to the feed item.'),
+      ),
+      'location_longitude' => array(
+        'name' => t('Longitudes'),
+        'description' => t('An array of longitudes assigned to the feed item.'),
+      ),
+      'enclosures' => array(
+        'name' => t('Enclosures'),
+        'description' => t('An array of enclosures attached to the feed item.'),
+      ),
      );
   }
 
-- 
GitLab