function feeds_tamper_str_pad_callback in Feeds Tamper 6
Same name and namespace in other branches
- 7 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 55
Code
function feeds_tamper_str_pad_callback($source, $item_key, $element_key, &$field, $settings) {
$field = str_pad($field, $settings['pad_length'], $settings['real_pad_string'], $settings['pad_type']);
}