You are here

function locale_feeds_get_source in Feeds 6

Same name and namespace in other branches
  1. 7 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
Implementation of 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 = node_load($batch->feed_nid)) {
    return $node->language;
  }
}