-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappearancemodifier.php
106 lines (95 loc) · 2.79 KB
/
appearancemodifier.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php
use Civi\Appearancemodifier\Service;
require_once 'appearancemodifier.civix.php';
/**
* Implements hook_civicrm_config().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
*/
function appearancemodifier_civicrm_config(&$config): void
{
_appearancemodifier_civix_civicrm_config($config);
}
/**
* Implements hook_civicrm_post().
* On case of UFGroup create it also creates the Profile entry.
* On case of Survey create with activity_type 32 (petition signature)
* it also creates the Petition entry.
* On case of Event create it also creates the Event entry
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_post
* @throws CRM_Core_Exception
*/
function appearancemodifier_civicrm_post($op, $objectName, $objectId, &$objectRef): void
{
Service::post($op, $objectName, $objectId, $objectRef);
}
/**
* Implements hook_civicrm_links().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_links
*/
function appearancemodifier_civicrm_links($op, $objectName, $objectId, &$links, &$mask, &$values): void
{
Service::links($op, $links);
}
/**
* Implements hook_civicrm_alterTemplateFile().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterTemplateFile
* @throws CRM_Core_Exception
*/
function appearancemodifier_civicrm_alterTemplateFile($formName, &$form, $context, &$tplName): void
{
Service::alterTemplateFile($tplName, $form);
}
/**
* Implements hook_civicrm_buildProfile().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildProfile
* @throws CRM_Core_Exception
*/
function appearancemodifier_civicrm_buildProfile($profileName): void
{
Service::buildProfile($profileName);
}
/**
* Implements hook_civicrm_pageRun().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_pageRun
* @throws CRM_Core_Exception
*/
function appearancemodifier_civicrm_pageRun(&$page): void
{
Service::pageRun($page);
}
/**
* Implements hook_civicrm_buildForm().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_buildForm
* @throws CRM_Core_Exception
*/
function appearancemodifier_civicrm_buildForm($formName, &$form): void
{
Service::buildForm($formName, $form);
}
/**
* Implements hook_civicrm_alterContent()
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterContent
* @throws CRM_Core_Exception
*/
function appearancemodifier_civicrm_alterContent(&$content, $context, $tplName, &$object): void
{
Service::alterContent($content, $tplName, $object);
}
/**
* Implements hook_civicrm_postProcess().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postProcess
* @throws CRM_Core_Exception
*/
function appearancemodifier_civicrm_postProcess($formName, $form): void
{
Service::postProcess($formName, $form);
}