-
Notifications
You must be signed in to change notification settings - Fork 0
/
sumfields_extra_activity.php
45 lines (39 loc) · 1.09 KB
/
sumfields_extra_activity.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
use Civi\SumfieldsExtraActivity\Service;
require_once 'sumfields_extra_activity.civix.php';
/**
* Implements hook_civicrm_config().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
*/
function sumfields_extra_activity_civicrm_config(&$config): void
{
_sumfields_extra_activity_civix_civicrm_config($config);
}
/**
* Implements hook_civicrm_sumfields_definitions()
*/
function sumfields_extra_activity_civicrm_sumfields_definitions(&$custom): void
{
Service::sumfieldsDefinition($custom);
}
/**
* Implements hook_civicrm_buildForm().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm
* @throws \CRM_Core_Exception
*/
function sumfields_extra_activity_civicrm_buildForm($formName, &$form): void
{
Service::buildForm($formName, $form);
}
/**
* Implements hook_civicrm_postProcess().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postProcess
* @throws \CRM_Core_Exception
*/
function sumfields_extra_activity_civicrm_postProcess($formName, &$form): void
{
Service::postProcess($formName, $form);
}