Commit 982ffaad authored by mattwire's avatar mattwire

Add spec for MembershipStatus.calc API function

parent 13c55bcd
......@@ -179,3 +179,16 @@ SELECT start_date, end_date, join_date, membership_type_id
$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';
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment