[#9] implemented exception for ending twingle contributions

This commit is contained in:
B. Endres 2019-11-15 11:05:09 +01:00
parent 30ab55f3ba
commit fc7c7d7d7b
6 changed files with 125 additions and 0 deletions

View file

@ -3,6 +3,15 @@
require_once 'twingle.civix.php';
use CRM_Twingle_ExtensionUtil as E;
/**
* Implements hook_civicrm_pre().
*/
function twingle_civicrm_pre($op, $objectName, $id, &$params) {
if ($objectName == 'ContributionRecur' && $op == 'edit') {
CRM_Twingle_Tools::checkRecurringContributionChange($id, $params);
}
}
/**
* Implements hook_civicrm_config().
*