From: Steve Sutton Date: Thu, 27 Jun 2013 15:58:49 +0000 (+0000) Subject: add MailChimp to trip planner X-Git-Tag: v1.0~103 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=27cfe0aada2107e28fa296959280b0408a7aefed;p=web%2FMichiganTrailMaps.git add MailChimp to trip planner --- 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