Remove empty lines from Gravity Forms export file (otherwise problems when importing to excel)
<?php
/*Remove Line breaks from export file */
add_filter("gform_save_field_value", "save_field_value", 10, 4);
function save_field_value($value, $lead, $field, $form){
$new_value = str_replace(array("\n", "\t", "\r"), '', $value);
return $new_value;
}
?>