You are here

function locale_feeds_node_processor_targets_alter in Feeds 7

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

Implements hook_feeds_node_processor_targets_alter().

File

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

Code

function locale_feeds_node_processor_targets_alter(&$targets, $content_type) {
  if (variable_get('language_content_type_' . $content_type, FALSE)) {
    $targets['language'] = array(
      'name' => t('Language'),
      'callback' => 'locale_feeds_set_target',
      'description' => t('The language of the node.'),
    );
  }
}