... is not working. I think it is because there is a bug in the callback function.

I've changed it to this.

function feeds_tamper_truncate_text_callback($result, $item_key, $element_key, &$field, $settings, $source) {
	if (!is_array($field)) {
		$field = array($field);
	}
	$out = array();
	foreach ($field as $f) {
			$out[] = truncate_utf8($f, $settings['num_char'], FALSE, $settings['ellipses']);
	}
	$field = $out;
//  $field = truncate_utf8($field, $settings['num_char'], FALSE, $settings['ellipses']);
}

Maybe it is helpful.

Comments

illeace’s picture

twistor’s picture