Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save szeidler/1f68473cff5aaea21dfb78473ba509a6 to your computer and use it in GitHub Desktop.
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
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