}
$accountRel = key(CRM_Core_PseudoConstant::accountOptionValues('account_relationship', NULL, " AND v.name LIKE 'Income Account is' "));
- CRM_Utils_Hook::alterDeferredRevenueItems($deferredRevenues);
+ CRM_Utils_Hook::alterDeferredRevenueItems($deferredRevenues, $contributionDetails, $update, $context);
foreach ($deferredRevenues as $key => $deferredRevenue) {
$results = civicrm_api3('EntityFinancialAccount', 'get', array(
*
* @param array $deferredRevenues
*
+ * @param array $contributionDetails
+ *
+ * @param bool $update
+ *
+ * @param string $context
+ *
* @return mixed
*/
- public static function alterDeferredRevenueItems(&$deferredRevenues) {
- return self::singleton()->invoke(1, $deferredRevenues, self::$_nullObject,
- self::$_nullObject, self::$_nullObject, self::$_nullObject, self::$_nullObject,
- 'civicrm_alterDeferredRevenueItems'
+ public static function alterDeferredRevenueItems(&$deferredRevenues, $contributionDetails, $update, $context) {
+ return self::singleton()->invoke(4, $deferredRevenues, $contributionDetails, $update, $context,
+ self::$_nullObject, self::$_nullObject, 'civicrm_alterDeferredRevenueItems'
);
}