diff --git a/feeds.module b/feeds.module index caef6344a4516f29730b4c3cf39d1d6d5fead1ae..ec6f42d6eae7d9ec72a68f68d9c8b11135be4a11 100644 --- a/feeds.module +++ b/feeds.module @@ -43,6 +43,11 @@ function feeds_feeds_plugin() { 'file' => drupal_get_path('module', 'feeds') .'/plugins/FeedsHttpFetcher.inc', 'parent' => 'FeedsFetcher', ), + 'FeedsCSVParser' => array( + 'name' => t('CSV parser'), + 'file' => drupal_get_path('module', 'feeds') .'/plugins/FeedsCSVParser.inc', + 'parent' => 'FeedsParser', + ), 'FeedsSyndicationParser' => array( 'name' => t('Common syndication parser'), 'file' => drupal_get_path('module', 'feeds') .'/plugins/FeedsSyndicationParser.inc', diff --git a/plugins/FeedsCSVParser.inc b/plugins/FeedsCSVParser.inc new file mode 100644 index 0000000000000000000000000000000000000000..28fbc6d9acc4ba4a169a05275e6a72070bf787dd --- /dev/null +++ b/plugins/FeedsCSVParser.inc @@ -0,0 +1,19 @@ +<?php +// $Id$ + +class FeedsCSVParser extends FeedsParser { + + /** + * Parses a raw string and returns a Feed object from it. + */ + public function parse($raw) { + + } + + /** + * Return mapping sources. + */ + public function getMappingSources() { + return array(); + } +} \ No newline at end of file diff --git a/plugins/FeedsSyndicationParser.inc b/plugins/FeedsSyndicationParser.inc index 62ac0591c1b1dd10ea94da7b4a22438d18a91a1a..b7a6ecd9bcac10eda8922823f3c96b52c23622bc 100644 --- a/plugins/FeedsSyndicationParser.inc +++ b/plugins/FeedsSyndicationParser.inc @@ -3,14 +3,6 @@ class FeedsSyndicationParser extends FeedsParser { - public static function getName() { - return t('Syndication Parser'); - } - - public static function getDescription() { - return t('Parses RSS and Atom feeds.'); - } - /** * Parses a raw string and returns a Feed object from it. */