+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
* This api exposes CiviCRM contribution pages.
*
* @package CiviCRM_APIv3
- * @subpackage API_ContributionPage
*/
/**
- * Create or update a contribution_page.
+ * Create or update a ContributionPage.
*
* @param array $params
* Array per getfields metadata.
}
/**
- * Returns array of contribution_pages matching a set of one or more group properties.
+ * Returns array of ContributionPage(s) matching a set of one or more group properties.
*
* @param array $params
* Array per getfields metadata.
}
/**
- * Delete an existing contribution_page.
+ * Delete an existing ContributionPage.
*
- * This method is used to delete any existing contribution_page. id of the group
- * to be deleted is required field in $params array
+ * This method is used to delete any existing ContributionPage given its id.
*
* @param array $params
* Array per getfields metadata.
}
/**
- * Submit a contribution_page.
+ * Submit a ContributionPage.
*
* @param array $params
* Array per getfields metadata.
*/
function civicrm_api3_contribution_page_submit($params) {
$result = CRM_Contribute_Form_Contribution_Confirm::submit($params);
- return civicrm_api3_create_success($result, $params, 'contribution_page', 'submit');
+ 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,
+ ),
+ );
}