add MailChimp to trip planner
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 27 Jun 2013 15:58:49 +0000 (15:58 +0000)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 27 Jun 2013 15:58:49 +0000 (15:58 +0000)
Toolkit/Contacts/SaveTripPlanner.php

index 2b5518f..870abeb 100755 (executable)
@@ -554,6 +554,14 @@ class Toolkit_Contacts_SaveTripPlanner
                 && $values['mail_ok']) {
                 $contact->attach(new Toolkit_LeadManager_StreamSend());
             }
+            if (    defined('CONSTANT_CONTACT')
+                && CONSTANT_CONTACT) {
+                $contact->attach(new Toolkit_LeadManager_ConstantContact());
+            }
+            if (    defined('MAILCHIMP_APP')
+                && MAILCHIMP_APP) {
+                $contact->attach(new Toolkit_LeadManager_MailChimp());
+            }
             $contact->save($this->dbh);
             $contactId = $contact->getId();
             // put in the creation of the contact record here