From e3554561dc015f24eb7f9b96a803fd4819cbef45 Mon Sep 17 00:00:00 2001
From: David Thompson <davet@gnu.org>
Date: Wed, 7 Jan 2015 15:47:16 -0500
Subject: [PATCH] Show more than 25 contribution pages on widget edit form.

CiviCRM's API implicitly limits to 25 results unless told otherwise.
---
 wci-helper-functions.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/wci-helper-functions.php b/wci-helper-functions.php
index 0f538a8..6739961 100644
--- a/wci-helper-functions.php
+++ b/wci-helper-functions.php
@@ -27,7 +27,9 @@
       0 => ts('- select -'),
     );
 
-    $result = civicrm_api3('contribution_page', 'get');
+    $result = civicrm_api3('contribution_page', 'get', array(
+      'rowCount' => 0 // Fetch all contribution pages.
+    ));
     foreach ($result['values'] as $contribution_page) {
       $options[$contribution_page['id']] = $contribution_page['title'];
     }
-- 
2.25.1