make TwingleCampaings clonable

TwingleCampaings can be cloned. Cloned campaigns will generate a new cid and url.
This commit is contained in:
Marc Michalsky 2021-10-06 15:14:32 +02:00
parent f059abf5a8
commit a01367a161
6 changed files with 66 additions and 18 deletions

View file

@ -40,6 +40,13 @@ function _civicrm_api3_twingle_campaign_Create_spec(array &$spec) {
'api.required' => 1,
'description' => E::ts('Optional parent id for this Campaign'),
];
$spec['clone'] = [
'name' => 'clone',
'title' => E::ts('Clone'),
'type' => CRM_Utils_Type::T_BOOLEAN,
'api.required' => 0,
'description' => E::ts('Set this value to true if this campaign is about to be cloned to recreate cid'),
];
}