You are here

function feeds_tamper_encode_callback in Feeds Tamper 7

Callback for the 'encode' plugin.

1 string reference to 'feeds_tamper_encode_callback'
encode.inc in plugins/encode.inc

File

plugins/encode.inc, line 45

Code

function feeds_tamper_encode_callback($source, $item_key, $element_key, &$field, array $settings) {
  if (empty($settings['mode'])) {
    $settings['mode'] = 'serialize';
  }
  $function = $settings['mode'];
  if (function_exists($function)) {
    $field = call_user_func($function, $field);
  }
}