You are here

function feeds_tamper_hash_callback in Feeds Tamper 7

Same name and namespace in other branches
  1. 6 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($result, $item_key, $element_key, &$field, $settings, $source) {
  if ($settings['override'] || !trim($field)) {
    $field = md5(serialize($result->items[$item_key]));
  }
}