+ // Construct a new expression
+ $replacer = '{%pipe,' . $data['callback'] . ',' . $configValue . '%}';
+
+ // Replace the config entry
+ $code = str_replace($data['matches'][0][$data['key']], $replacer, $data['code']);
+
+ // Return replaced code
+ return $code;
+}
+
+// Expression call-back function for piping data through functions
+function doExpressionPipe ($data) {
+ // We need callback and extra_func: callback is really the call-back function, extra_func is our value
+ $replacer = $data['extra_func'];
+
+ // Do we have a call-back? Should always be there!