You are here

function synonyms_entity_find_feeds_tamper_callback in Synonyms 7

Feeds tamper callback to execute entity look up by its synonyms.

1 string reference to 'synonyms_entity_find_feeds_tamper_callback'
synonyms_entity_find.inc in plugins/feeds_tamper/synonyms_entity_find.inc

File

plugins/feeds_tamper/synonyms_entity_find.inc, line 68

Code

function synonyms_entity_find_feeds_tamper_callback($result, $item_key, $element_key, &$field, array $settings) {
  $found = synonyms_get_entity_by_synonym($settings['entity_type'], $field, $settings['bundle']);
  if ($found) {
    $field = $found;
  }
}