X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=api%2Fv3%2FMembershipStatus.php;h=499c823fe35736d25460b3c97561462e9aabb7ed;hb=4f94e3fac75687b050154ec84413796249bb4fb5;hp=3d36680a552b0eab58fd9bbfaab8aefab6280719;hpb=4f87ec96e8ba594ad1705a8806999bd0bc976bb0;p=civicrm-core.git diff --git a/api/v3/MembershipStatus.php b/api/v3/MembershipStatus.php index 3d36680a55..499c823fe3 100644 --- a/api/v3/MembershipStatus.php +++ b/api/v3/MembershipStatus.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2015 | + | Copyright CiviCRM LLC (c) 2004-2016 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -43,6 +43,18 @@ function civicrm_api3_membership_status_create($params) { return _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params); } +/** + * Adjust Metadata for Create action. + * + * The metadata is used for setting defaults, documentation & validation. + * + * @param array $params + * Array of parameters determined by getfields. + */ +function _civicrm_api3_membership_status_create_spec(&$params) { + $params['name']['api.required'] = 1; +} + /** * Get a membership status. *