function hook_feeds_parser_sources_alter in Feeds 8.2
Same name and namespace in other branches
- 6 feeds.api.php \hook_feeds_parser_sources_alter()
- 7.2 feeds.api.php \hook_feeds_parser_sources_alter()
- 7 feeds.api.php \hook_feeds_parser_sources_alter()
Alter mapping sources.
Use this hook to add additional mapping sources for any parser. Allows for registering a callback to be invoked at mapping time.
See also
locale_feeds_parser_sources_alter().
Related topics
1 function implements hook_feeds_parser_sources_alter()
Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.
- taxonomy_feeds_parser_sources_alter in mappers/
taxonomy.inc - Implements hook_feeds_parser_sources_alter().
1 invocation of hook_feeds_parser_sources_alter()
- FeedsParser::getMappingSources in lib/
Drupal/ feeds/ Plugin/ FeedsParser.php - Declare the possible mapping sources that this parser produces.
File
- ./
feeds.api.php, line 220 - Documentation of Feeds hooks.
Code
function hook_feeds_parser_sources_alter(&$sources, $content_type) {
$sources['my_source'] = array(
'name' => t('Images in description element'),
'description' => t('Images occuring in the description element of a feed item.'),
'callback' => 'my_source_get_source',
);
}