Skip to content

Commit

Permalink
Merge pull request #10944 from mattwire/CRM-21152_membership_status_spec
Browse files Browse the repository at this point in the history
CRM-21152 Add spec for MembershipStatus.calc API function
  • Loading branch information
eileenmcnaughton authored Sep 5, 2017
2 parents ec89e24 + 982ffaa commit a832503
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions api/v3/MembershipStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,16 @@ function civicrm_api3_membership_status_calc($membershipParams) {
$dao->free();
return $result;
}

/**
* Adjust Metadata for Calc action.
*
* The metadata is used for setting defaults, documentation & validation.
*
* @param array $params
* Array of parameters determined by getfields.
*/
function _civicrm_api3_membership_status_calc_spec(&$params) {
$params['membership_id']['api.required'] = 1;
$params['membership_id']['title'] = 'Membership ID';
}

0 comments on commit a832503

Please sign in to comment.