[#18] implementing xcm profiles

This commit is contained in:
B. Endres 2020-01-30 08:17:16 +01:00
parent 8ae3f658c0
commit 8642ab5cfd
6 changed files with 77 additions and 6 deletions

View file

@ -139,6 +139,12 @@ class CRM_Twingle_Submission {
return NULL;
}
// add xcm profile
$xcm_profile = $profile->getAttribute('xcm_profile');
if (!empty($xcm_profile)) {
$contact_data['xcm_profile'] = $xcm_profile;
}
// add campaign
$campaign_id = (int) $profile->getAttribute('campaign');
if ($campaign_id) {