function locale_feeds_parser_sources_alter in Feeds 7
Same name and namespace in other branches
- 6 mappers/locale.inc \locale_feeds_parser_sources_alter()
Implements hook_feeds_parser_sources_alter().
Declare the language of the feed node as a mapping source. This will most commonly be used for having feed item nodes inherit the language configuration of their feed node.
File
- mappers/
locale.inc, line 15 - On behalf implementation of mapping hooks for locale module.
Code
function locale_feeds_parser_sources_alter(&$sources, $content_type) {
if (!empty($content_type)) {
$sources['parent:language'] = array(
'name' => t('Feed node: Language'),
'description' => t('Language of the feed node.'),
'callback' => 'locale_feeds_get_source',
);
}
}