You are here

function feeds_tamper_hash_callback in Feeds Tamper 6

Same name and namespace in other branches
  1. 7 plugins/hash.inc \feeds_tamper_hash_callback()
1 string reference to 'feeds_tamper_hash_callback'
hash.inc in plugins/hash.inc

File

plugins/hash.inc, line 30

Code

function feeds_tamper_hash_callback($source, $item_key, $element_key, &$field, $settings) {
  if ($settings['override'] || !trim($field)) {
    $field = md5(serialize($source->batch->items[$item_key]));
  }
}