* {getfields MembershipType_get}
*/
function civicrm_api3_membership_type_create($params) {
-
$values = $params;
civicrm_api3_verify_mandatory($values, 'CRM_Member_DAO_MembershipType');
* @access public
*/
function civicrm_api3_membership_type_get($params) {
-
return _civicrm_api3_basic_get(_civicrm_api3_get_BAO(__FUNCTION__), $params);
}
* {getfields MembershipType_delete}
*/
function civicrm_api3_membership_type_delete($params) {
-
-
$memberDelete = CRM_Member_BAO_MembershipType::del($params['id'], 1);
return $memberDelete ? civicrm_api3_create_success($memberDelete) : civicrm_api3_create_error('Error while deleting membership type. id : ' . $params['id']);
}