Created
October 4, 2018 13:13
-
-
Save szeidler/1f68473cff5aaea21dfb78473ba509a6 to your computer and use it in GitHub Desktop.
Increase mailchimp template fetch limit. Otherwise it will only fetch 10 templates per template group
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/modules/mailchimp_campaign/mailchimp_campaign.module b/modules/mailchimp_campaign/mailchimp_campaign.module | |
index c781162..2eda7c7 100644 | |
--- a/modules/mailchimp_campaign/mailchimp_campaign.module | |
+++ b/modules/mailchimp_campaign/mailchimp_campaign.module | |
@@ -274,7 +274,7 @@ function mailchimp_campaign_list_templates($reset = FALSE) { | |
if ($chosen) { | |
$all_templates[$type] = array(); | |
- $response = $mc_templates->getTemplates(array('type' => $type)); | |
+ $response = $mc_templates->getTemplates(array('type' => $type, 'count' => 50)); | |
foreach ($response->templates as $template) { | |
$all_templates[$type][$template->id] = $template; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment