X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FContributionPage.php;h=9e1b49000aad6f912a266939a9cef86c3eb7a250;hb=af8b12dbd37b41a0fec3db2b5d1f23e0b0430649;hp=360128ba95f7a0e981f830caff18517a430bca9e;hpb=3c3080c01a8ed53aea86cf96e036bf79cf26577b;p=civicrm-core.git diff --git a/api/v3/ContributionPage.php b/api/v3/ContributionPage.php index 360128ba95..9e1b49000a 100644 --- a/api/v3/ContributionPage.php +++ b/api/v3/ContributionPage.php @@ -2,7 +2,7 @@ /* /* +--------------------------------------------------------------------+ - | CiviCRM version 4.5 | + | CiviCRM version 4.6 | +--------------------------------------------------------------------+ | Copyright CiviCRM LLC (c) 2004-2014 | +--------------------------------------------------------------------+ @@ -47,7 +47,10 @@ * @access public */ function civicrm_api3_contribution_page_create($params) { - return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); + $result = _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); + CRM_Contribute_PseudoConstant::flush('contributionPageAll'); + CRM_Contribute_PseudoConstant::flush('contributionPageActive'); + return $result; } /** @@ -81,11 +84,10 @@ function civicrm_api3_contribution_page_get($params) { * This method is used to delete any existing contribution_page. id of the group * to be deleted is required field in $params array * - * @param array $params (reference) array containing id of the group + * @param array $params array containing id of the group * to be deleted * - * @return array (referance) returns flag true if successfull, error - * message otherwise + * @return array API result Array * {@getfields contribution_page_delete} * @access public */ @@ -102,8 +104,7 @@ function civicrm_api3_contribution_page_delete($params) { * @param array $params (reference) array containing id of the group * to be deleted * - * @return array (referance) returns flag true if successfull, error - * message otherwise + * @return array API result array * {@getfields contribution_page_delete} * @access public */