From f12b40fca131983569e8328ad28835e9cbc94d43 Mon Sep 17 00:00:00 2001
From: Alex Barth <alex_b@53995.no-reply.drupal.org>
Date: Wed, 28 Oct 2009 01:08:30 +0000
Subject: [PATCH] Add descriptions to all node targets.

---
 mappers/content.inc            | 2 +-
 plugins/FeedsNodeProcessor.inc | 6 ++++++
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/mappers/content.inc b/mappers/content.inc
index 8b7ddf85..fbba2e8b 100644
--- a/mappers/content.inc
+++ b/mappers/content.inc
@@ -25,7 +25,7 @@ function content_feeds_node_processor_targets_alter(&$targets, $content_type) {
     $targets[$k] = array(
       'name' => $name,
       'callback' => 'content_feeds_set_target',
-      'description' => t('Maps to the !name CCK field.', array('!name' => $name)),
+      'description' => t('The CCK !name field of the node.', array('!name' => $name)),
     );
   }
 }
diff --git a/plugins/FeedsNodeProcessor.inc b/plugins/FeedsNodeProcessor.inc
index 407a0d3f..753920b1 100644
--- a/plugins/FeedsNodeProcessor.inc
+++ b/plugins/FeedsNodeProcessor.inc
@@ -229,23 +229,29 @@ class FeedsNodeProcessor extends FeedsProcessor {
     $targets = array(
       'title' => array(
         'name' => t('Title'),
+        'description' => t('The title of the node'),
        ),
       'status' => array(
         'name' => t('Published status'),
+        'description' => t('Whether a node is published or not. 1 stands for published, 0 for not published.'),
       ),
       'created' => array(
         'name' => t('Published date'),
+        'description' => t('The UNIX time when a node has been published.'),
       ),
       // Using 'teaser' instead of 'body' forces entire content above the break.
       'body' => array(
         'name' => t('Body'),
+        'description' => t('The body of the node. The teaser will be the same as the entire body.'),
       ),
       'url' => array(
         'name' => t('URL'),
+        'description' => t('The external URL of the node. E. g. the feed item URL in the case of a syndication feed. May be unique.'),
         'optional_unique' => TRUE,
       ),
       'guid' => array(
         'name' => t('GUID'),
+        'description' => t('The external GUID of the node. E. g. the feed item GUID in the case of a syndication feed. May be unique.'),
         'optional_unique' => TRUE,
       ),
     );
-- 
GitLab