projects
/
web
/
MichiganTrailMaps.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26dc80f
)
add MailChimp to trip planner
author
Steve Sutton
<steve@gaslightmedia.com>
Thu, 27 Jun 2013 15:58:49 +0000
(15:58 +0000)
committer
Steve Sutton
<steve@gaslightmedia.com>
Thu, 27 Jun 2013 15:58:49 +0000
(15:58 +0000)
Toolkit/Contacts/SaveTripPlanner.php
patch
|
blob
|
history
diff --git
a/Toolkit/Contacts/SaveTripPlanner.php
b/Toolkit/Contacts/SaveTripPlanner.php
index
2b5518f
..
870abeb
100755
(executable)
--- 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