Skip to content
Snippets Groups Projects
Commit f12b40fc authored by Alex Barth's avatar Alex Barth
Browse files

Add descriptions to all node targets.

parent 878f601e
No related branches found
No related tags found
No related merge requests found
...@@ -25,7 +25,7 @@ function content_feeds_node_processor_targets_alter(&$targets, $content_type) { ...@@ -25,7 +25,7 @@ function content_feeds_node_processor_targets_alter(&$targets, $content_type) {
$targets[$k] = array( $targets[$k] = array(
'name' => $name, 'name' => $name,
'callback' => 'content_feeds_set_target', '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)),
); );
} }
} }
......
...@@ -229,23 +229,29 @@ class FeedsNodeProcessor extends FeedsProcessor { ...@@ -229,23 +229,29 @@ class FeedsNodeProcessor extends FeedsProcessor {
$targets = array( $targets = array(
'title' => array( 'title' => array(
'name' => t('Title'), 'name' => t('Title'),
'description' => t('The title of the node'),
), ),
'status' => array( 'status' => array(
'name' => t('Published status'), 'name' => t('Published status'),
'description' => t('Whether a node is published or not. 1 stands for published, 0 for not published.'),
), ),
'created' => array( 'created' => array(
'name' => t('Published date'), '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. // Using 'teaser' instead of 'body' forces entire content above the break.
'body' => array( 'body' => array(
'name' => t('Body'), 'name' => t('Body'),
'description' => t('The body of the node. The teaser will be the same as the entire body.'),
), ),
'url' => array( 'url' => array(
'name' => t('URL'), '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, 'optional_unique' => TRUE,
), ),
'guid' => array( 'guid' => array(
'name' => t('GUID'), '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, 'optional_unique' => TRUE,
), ),
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment