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