type == 'text/filepath') { $string = file_get_contents($fetcherResult->value); } else { $string = $fetcherResult->value; } feeds_include_library('common_syndication_parser.inc', 'common_syndication_parser'); return new FeedsParserResult(common_syndication_parser_parse($string), 'syndication'); } /** * Return mapping sources. * * At a future point, we could expose data type information here, * storage systems like Data module could use this information to store * parsed data automatically in fields with a correct field type. */ public function getMappingSources() { return array( 'title' => t('Title'), 'description' => t('Description'), 'author' => t('Author'), 'timestamp' => t('Published date'), 'url' => t('Item URL (link)'), 'guid' => t('Item GUID'), 'tags' => t('Categories'), ); } }