You are here

function locale_feeds_get_source in Feeds 7

Same name and namespace in other branches
  1. 6 mappers/locale.inc \locale_feeds_get_source()

Callback, returns specific locale settings of the parent feed node.

1 string reference to 'locale_feeds_get_source'
locale_feeds_parser_sources_alter in mappers/locale.inc
Implements hook_feeds_parser_sources_alter().

File

mappers/locale.inc, line 28
On behalf implementation of mapping hooks for locale module.

Code

function locale_feeds_get_source(FeedsImportBatch $batch, $key) {
  if ($node = $batch
    ->feedNode()) {
    return $node->language;
  }
}