#29750 progressbar.tpl
[com.zyxware.civiwci.git] / wci-helper-functions.php
diff --git a/wci-helper-functions.php b/wci-helper-functions.php
new file mode 100644 (file)
index 0000000..c38981b
--- /dev/null
@@ -0,0 +1,14 @@
+<?php
+
+  function getContributionPageOptions() {
+    $options = array(
+      '' => ts('- select -'),
+    );
+    
+    $result = civicrm_api3('contribution_page', 'get');
+    foreach ($result['values'] as $contribution_page) {
+      $options[$contribution_page['id']] = $contribution_page['title'];
+    }
+    
+    return $options;
+  }