CRM-16523 towards fixing test issues on this
[civicrm-core.git] / api / v3 / ContributionPage.php
index 27d460561009e6564970804e9ac73d67a21fc3ad..bd7812b26e2948540d5a2ed1c1b23c9a5e37b477 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014                                |
+ | Copyright CiviCRM LLC (c) 2004-2015                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -103,3 +103,24 @@ function civicrm_api3_contribution_page_submit($params) {
   $result = CRM_Contribute_Form_Contribution_Confirm::submit($params);
   return civicrm_api3_create_success($result, $params, 'ContributionPage', 'submit');
 }
+
+
+/**
+ * Set default getlist parameters.
+ *
+ * @see _civicrm_api3_generic_getlist_defaults
+ *
+ * @param array $request
+ *
+ * @return array
+ */
+function _civicrm_api3_contribution_page_getlist_defaults(&$request) {
+  return array(
+    'description_field' => array(
+      'intro_text',
+    ),
+    'params' => array(
+      'is_active' => 1,
+    ),
+  );
+}