implement CiviCRM's double opt-in feature for newsletter

This commit is contained in:
Marc Michalsky 2020-07-24 10:57:14 +02:00
parent 675b682e0e
commit 4ff060884a
No known key found for this signature in database
GPG key ID: AC2D4E00990A6767
6 changed files with 67 additions and 13 deletions

View file

@ -221,6 +221,7 @@ class CRM_Twingle_Profile {
'membership_type_id',
'membership_type_id_recur',
'membership_postprocess_call',
'double_opt_in'
),
// Add payment methods.
array_keys(static::paymentInstruments()),
@ -293,6 +294,7 @@ class CRM_Twingle_Profile {
'custom_field_mapping' => NULL,
'membership_type_id' => NULL,
'membership_type_id_recur' => NULL,
'double_opt_in' => NULL,
)
// Add contribution status for all payment methods.
+ array_fill_keys(array_map(function($attribute) {