function feeds_tamper_copy_callback in Feeds Tamper 7
Same name and namespace in other branches
- 6 plugins/copy.inc \feeds_tamper_copy_callback()
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;
}
}