Skip to content

Commit

Permalink
Draft of implementation of exportIds hook veda-consulting-company#157
Browse files Browse the repository at this point in the history
  • Loading branch information
scardinius committed Aug 2, 2018
1 parent 8b66bc4 commit bf5d02b
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions gdpr.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,30 @@ function gdpr_civicrm_tabset($tabsetName, &$tabs, $context) {
}
}


/**
* Implements hook_civicrm_exportIds().
*
* @throws \CiviCRM_API3_Exception
*/
function gdpr_civicrm_exportIds($ids, $componentTable, $exportMode) {
switch ($exportMode) {
case CRM_Export_Form_Select::CONTACT_EXPORT:
CRM_Core_Error::debug_var('$componentTable', $componentTable);
$activityTypeId = CRM_Gdpr_Activity::contactExportedTypeId();
break;

case CRM_Export_Form_Select::ACTIVITY_EXPORT:
CRM_Core_Error::debug_var('$ids', $ids);
$activityTypeId = CRM_Gdpr_Activity::activityExportedTypeId();
break;

case CRM_Export_Form_Select::CONTRIBUTE_EXPORT:
$activityTypeId = CRM_Gdpr_Activity::contributionExportedTypeId();
break;
}
}

/**
* Add a Terms & Conditions tab for Event or Contribution Page.
*/
Expand Down

0 comments on commit bf5d02b

Please sign in to comment.