You are here

public function FeedsFeedNodeProcessor::getMappingTargets in Feeds 7

Same name and namespace in other branches
  1. 6 plugins/FeedsFeedNodeProcessor.inc \FeedsFeedNodeProcessor::getMappingTargets()

Return available mapping targets.

Overrides FeedsProcessor::getMappingTargets

File

plugins/FeedsFeedNodeProcessor.inc, line 169
Class definition of FeedsFeedNodeProcessor.

Class

FeedsFeedNodeProcessor
Creates *feed* nodes from feed items. The difference to FeedsNodeProcessor is that this plugin only creates nodes that are feed nodes themselves.

Code

public function getMappingTargets() {
  $targets = array(
    'title' => array(
      'name' => t('Title'),
      'description' => t('The title of the feed node.'),
    ),
    'status' => array(
      'name' => t('Published status'),
      'description' => t('Whether a feed 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.'),
    ),
    'body' => array(
      'name' => t('Body'),
      'description' => t('The body of the node. The teaser will be the same as the entire body.'),
    ),
    'source' => array(
      'name' => t('Feed source'),
      'description' => t('Depending on the selected fetcher, this could be for example a URL or a path to a file.'),
      'optional_unique' => TRUE,
    ),
  );
  return $targets;
}