]> git.mxchange.org Git - mailer.git/blobdiff - inc/expression-functions.php
A lot code rewritten:
[mailer.git] / inc / expression-functions.php
index 6a7ca12bf646bc544057143089c288999cef0b58..d44b587edd383f13af1092c55121bfb839e7940b 100644 (file)
@@ -236,5 +236,18 @@ function doExpressionMessage ($data) {
        return $code;
 }
 
+// Expression call-back for template functions
+function doExpressionTemplate ($data) {
+       // Do the replacement
+       //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'template='.$GLOBALS['current_template']);
+       $replacer = '{DQUOTE} . doTemplate' . $data['callback'] . "('" . $GLOBALS['current_template'] . "', true) . {DQUOTE}";
+
+       // Replace the code
+       $code = replaceExpressionCode($data, $replacer);
+
+       // Return the (maybe) replaced code
+       return $code;
+}
+
 // [EOF]
 ?>