]> git.mxchange.org Git - mailer.git/blobdiff - inc/email-functions.php
Moved template helpers out of regular functions
[mailer.git] / inc / email-functions.php
index 1bd2e4e7d74a3cce2e565a3874d4648738c174a9..43cedae31ec08752a2b3822293ea4bd630296379 100644 (file)
@@ -201,28 +201,6 @@ function sendAdminNotification ($subject, $templateName, $content = array(), $us
        }
 }
 
-// ----------------------------------------------------------------------------
-//                           Template helper functions
-// ----------------------------------------------------------------------------
-
-// Helper function to add extra headers to text mails
-function doTemplateAddExtraTextMailHeaders ($templateName, $clear, $extraHeaders = '') {
-       // Run the header through the filter
-       $extraHeaders = runFilterChain('add_extra_text_mail_headers', $extraHeaders);
-
-       // And return it
-       return $extraHeaders;
-}
-
-// Helper function to add extra headers to HTML mails
-function doTemplateAddExtraHtmlMailHeaders ($templateName, $clear, $extraHeaders = '') {
-       // Run the header through the filter
-       $extraHeaders = runFilterChain('add_extra_html_mail_headers', $extraHeaders);
-
-       // And return it
-       return $extraHeaders;
-}
-
 // Send mails for del/edit/lock build modes
 // @TODO $rawUserId is currently unused
 function sendGenericBuildMails ($mode, $tableName, $content, $id, $subjectPart = '', $userIdColumn = array('userid'), $rawUserId = array('userid')) {
@@ -271,5 +249,27 @@ function sendGenericBuildMails ($mode, $tableName, $content, $id, $subjectPart =
        }
 }
 
+// ----------------------------------------------------------------------------
+//                           Template helper functions
+// ----------------------------------------------------------------------------
+
+// Helper function to add extra headers to text mails
+function doTemplateAddExtraTextMailHeaders ($templateName, $clear, $extraHeaders = '') {
+       // Run the header through the filter
+       $extraHeaders = runFilterChain('add_extra_text_mail_headers', $extraHeaders);
+
+       // And return it
+       return $extraHeaders;
+}
+
+// Helper function to add extra headers to HTML mails
+function doTemplateAddExtraHtmlMailHeaders ($templateName, $clear, $extraHeaders = '') {
+       // Run the header through the filter
+       $extraHeaders = runFilterChain('add_extra_html_mail_headers', $extraHeaders);
+
+       // And return it
+       return $extraHeaders;
+}
+
 // [EOF]
 ?>