APIv4 - Add Address::getCoordinates action
[civicrm-core.git] / CRM / Utils / Token.php
index 23910f3634da397480858bc36801dbe112fe70a0..5347d07b0ed6089ffe94abd7b1ec2011fc7a3389 100644 (file)
@@ -1178,6 +1178,7 @@ class CRM_Utils_Token {
     $className = NULL,
     $jobID = NULL
   ) {
+    CRM_Core_Error::deprecatedFunctionWarning('If you hit this in mailing code you should use flexmailer - otherwise use the token processor');
     $params = [];
     foreach ($contactIDs as $contactID) {
       $params[] = [
@@ -1960,6 +1961,10 @@ class CRM_Utils_Token {
           '$last_name' => 'contact.last_name',
           '$displayName' => 'contact.display_name',
         ],
+        'membership_offline_receipt' => [
+          // receipt_text_renewal appears to be long gone.
+          'receipt_text_renewal' => 'receipt_text',
+        ],
         'pledge_acknowledgement' => [
           '$domain' => 'no longer available / relevant',
           '$contact' => 'no longer available / relevant',