You are here

function hook_feeds_parser_sources_alter in Feeds 7.2

Same name and namespace in other branches
  1. 8.2 feeds.api.php \hook_feeds_parser_sources_alter()
  2. 6 feeds.api.php \hook_feeds_parser_sources_alter()
  3. 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

my_source_get_source()

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 plugins/FeedsParser.inc
Declare the possible mapping sources that this parser produces.

File

./feeds.api.php, line 260
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 occurring in the description element of a feed item.'),
    'callback' => 'callback_my_source_get_source',
  );
}