From 27cfe0aada2107e28fa296959280b0408a7aefed Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 27 Jun 2013 15:58:49 +0000 Subject: [PATCH] add MailChimp to trip planner --- Toolkit/Contacts/SaveTripPlanner.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Toolkit/Contacts/SaveTripPlanner.php b/Toolkit/Contacts/SaveTripPlanner.php index 2b5518f..870abeb 100755 --- a/Toolkit/Contacts/SaveTripPlanner.php +++ b/Toolkit/Contacts/SaveTripPlanner.php @@ -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 -- 2.17.1