function feeds_tamper_str_pad_callback in Feeds Tamper 7
Same name and namespace in other branches
- 6 plugins/str_pad.inc \feeds_tamper_str_pad_callback()
1 string reference to 'feeds_tamper_str_pad_callback'
- str_pad.inc in plugins/
str_pad.inc
File
- plugins/
str_pad.inc, line 57
Code
function feeds_tamper_str_pad_callback($result, $item_key, $element_key, &$field, $settings, $source) {
$field = str_pad($field, $settings['pad_length'], $settings['real_pad_string'], $settings['pad_type']);
}