function feeds_tamper_find_replace_callback in Feeds Tamper 6
Same name and namespace in other branches
- 7 plugins/find_replace.inc \feeds_tamper_find_replace_callback()
1 string reference to 'feeds_tamper_find_replace_callback'
- find_replace.inc in plugins/
find_replace.inc
File
- plugins/
find_replace.inc, line 79
Code
function feeds_tamper_find_replace_callback($source, $item_key, $element_key, &$field, $settings) {
if ($settings['regex']) {
$field = preg_replace($settings['regex_find'], $settings['replace'], $field);
}
else {
$field = $settings['func']($settings['find'], $settings['replace'], $field);
}
}