/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.7 |
+ | CiviCRM version 5 |
+--------------------------------------------------------------------+
| Copyright Chirojeugd-Vlaanderen vzw 2015 |
+--------------------------------------------------------------------+
* @access public
*/
function civicrm_api3_saved_search_create($params) {
- civicrm_api3_verify_one_mandatory($params, NULL, array('form_values', 'where_clause'));
+ civicrm_api3_verify_one_mandatory($params, NULL, ['form_values', 'where_clause']);
// The create function of the dao expects a 'formValues' that is
// not serialized. The get function returns form_values, that is
// serialized.
}
}
- $result = _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params);
+ $result = _civicrm_api3_basic_create(_civicrm_api3_get_BAO(__FUNCTION__), $params, 'SavedSearch');
_civicrm_api3_saved_search_result_cleanup($result);
return $result;
}