type == 'text/filepath') { $string = file_get_contents($fetcherResult->value); } else { $string = $fetcherResult->value; } feeds_include_library('opml_parser.inc', 'opml_parser'); return new FeedsParserResult(opml_parser_parse($string), 'syndication'); } /** * Return mapping sources. */ public function getMappingSources() { return array( 'title' => array( 'name' => t('Feed title'), 'description' => t('Title of the feed.'), ), 'xmlurl' => array( 'name' => t('Feed URL'), 'description' => t('URL of the feed.'), ), ); } }