add parameter filter to all apis
This commit is contained in:
parent
a79e534099
commit
6fd9521f08
13 changed files with 69 additions and 1 deletions
|
@ -56,6 +56,11 @@ function _civicrm_api3_twingle_campaign_Create_spec(array &$spec) {
|
|||
*/
|
||||
function civicrm_api3_twingle_campaign_Create(array $params): array {
|
||||
|
||||
// filter parameters
|
||||
$allowed_params = [];
|
||||
_civicrm_api3_twingle_campaign_Create_spec($allowed_params);
|
||||
$params = array_intersect_key($params, $allowed_params);
|
||||
|
||||
// instantiate TwingleCampaign
|
||||
$campaign = new TwingleCampaign($params);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue