diff --git a/lib/functions/formfields/text/function.getFormFieldDataText.php b/lib/functions/formfields/text/function.getFormFieldDataText.php new file mode 100644 index 00000000..a1f7f3ca --- /dev/null +++ b/lib/functions/formfields/text/function.getFormFieldDataText.php @@ -0,0 +1,26 @@ + (2016-) + * @license GPLv2 http://files.froxlor.org/misc/COPYING.txt + * @package Functions + * + */ + +function getFormFieldDataText($fieldname, $fielddata, &$input) { + if(isset($input[$fieldname])) { + $newfieldvalue = str_replace("\r\n", "\n", $input[$fieldname]); + } else { + $newfieldvalue = $fielddata['default']; + } + + return $newfieldvalue; +}