CRM-19690 - CRM_Mailing_Tokens - Remove unused `getTrackOpenUrl`
authorTim Otten <totten@civicrm.org>
Thu, 22 Dec 2016 18:24:54 +0000 (11:24 -0700)
committerTim Otten <totten@civicrm.org>
Thu, 22 Dec 2016 18:25:12 +0000 (11:25 -0700)
During development of FlexMailer, I flirted with using a special token (e.g.
`{actions.trackOpen}`) but ultimately found that was positioned well in
the order of operations.

CRM/Mailing/ActionTokens.php

index bf3277be375416beb748d9e4efa62ad05962bf5c..15878ae7b89ef022a1214d82c33b58509f94f041 100644 (file)
@@ -113,9 +113,4 @@ class CRM_Mailing_ActionTokens extends \Civi\Token\AbstractTokenSubscriber {
         $field, $verp, $urls, TRUE));
   }
 
-  protected function getTrackOpenUrl(\Civi\Token\TokenRow $row) {
-    $config = CRM_Core_Config::singleton();
-    return $config->userFrameworkResourceURL . "extern/open.php?q=" . $row->context['mailingActionTarget']['id'];
-  }
-
 }