function my_source_get_source in Feeds 8.2
Same name and namespace in other branches
- 6 feeds.api.php \my_source_get_source()
- 7 feeds.api.php \my_source_get_source()
Example callback specified in hook_feeds_parser_sources_alter().
To be invoked on mapping time.
Parameters
$source: The FeedsSource object being imported.
$result: The FeedsParserResult object being mapped from.
$key: The key specified in the $sources array in hook_feeds_parser_sources_alter().
Return value
The value to be extracted from the source.
See also
hook_feeds_parser_sources_alter()
locale_feeds_get_source()
Related topics
1 string reference to 'my_source_get_source'
- hook_feeds_parser_sources_alter in ./
feeds.api.php - Alter mapping sources.
File
- ./
feeds.api.php, line 247 - Documentation of Feeds hooks.
Code
function my_source_get_source(FeedsSource $source, FeedsParserResult $result, $key) {
$item = $result
->currentItem();
return my_source_parse_images($item['description']);
}