Skip to content

Commit

Permalink
CRM-13283 - set Status Check Name as required on create
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaphoneJon committed Apr 26, 2015
1 parent 02b414a commit 2292065
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/v3/StatusPreference.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 2292065

Please sign in to comment.