You are here

function feeds_tamper_copy_callback in Feeds Tamper 6

Same name and namespace in other branches
  1. 7 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 44

Code

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