diff --git a/libraries/transformations/text_plain__append.inc.php b/libraries/transformations/text_plain__append.inc.php new file mode 100644 index 0000000000..8a8b3f4198 --- /dev/null +++ b/libraries/transformations/text_plain__append.inc.php @@ -0,0 +1,25 @@ + __('Appends text to a string. The only option is the text to be appended (enclosed in single quotes, default empty string).'), + ); +} + +function PMA_transformation_text_plain__append($buffer, $options = array(), $meta = '') { + + if (! isset($options[0]) || $options[0] == '') { + $options[0] = ''; + } + + $newtext = $buffer . $options[0]; //just append the option to the original text + + return $newtext; +} + +?>