From abdc65726e28e82e469b3f2838d46b25c75c738d Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Sun, 26 Apr 2015 10:57:59 -0600 Subject: [PATCH] CRM-13283 - set Status Check Name as required on create --- api/v3/StatusPreference.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/v3/StatusPreference.php b/api/v3/StatusPreference.php index e2b9475811..d74c5e7d18 100644 --- a/api/v3/StatusPreference.php +++ b/api/v3/StatusPreference.php @@ -65,3 +65,13 @@ function civicrm_api3_status_preference_get($params) { function civicrm_api3_status_preference_delete($params) { return _civicrm_api3_basic_delete(_civicrm_api3_get_BAO(__FUNCTION__), $params); } + +/** + * Adjust Metadata for Create action. + * + * @param array $params + * Array of parameters determined by getfields. + */ +function _civicrm_api3_status_preference_create_spec(&$params) { + $params['name']['api.required'] = 1; +} -- 2.25.1