protected function FeedsFeedNodeProcessor::feedNodeImporter in Feeds 7
Same name and namespace in other branches
- 6 plugins/FeedsFeedNodeProcessor.inc \FeedsFeedNodeProcessor::feedNodeImporter()
Helper for retrieving the importer object for the feed nodes to produce.
File
- plugins/
FeedsFeedNodeProcessor.inc, line 213 - 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
protected function feedNodeImporter() {
if ($id = feeds_get_importer_id($this->config['content_type'])) {
return feeds_importer($id);
}
else {
throw new Exception(t('Content type to be created is not a valid Feed content type.'));
}
}