You are here

function feeds_tamper_copy_callback in Feeds Tamper 7

Same name and namespace in other branches
  1. 6 plugins/copy.inc \feeds_tamper_copy_callback()
1 string reference to 'feeds_tamper_copy_callback'
copy.inc in plugins/copy.inc

File

plugins/copy.inc, line 49

Code

function feeds_tamper_copy_callback($result, $item_key, $element_key, &$field, $settings, $source) {
  switch ($settings['to_from']) {
    case 'to':
      $result->items[$item_key][$settings['source']] = $field;
      return;
    case 'from':
      $field = $result->items[$item_key][$settings['source']];
      return;
  }
}