Merge pull request #18063 from civicrm/5.28
[civicrm-core.git] / ext / eventcart / eventcart.php
1 <?php
2
3 require_once 'eventcart.civix.php';
4 // phpcs:disable
5 use CRM_Eventcart_ExtensionUtil as E;
6 // phpcs:enable
7
8 /**
9 * Implements hook_civicrm_config().
10 *
11 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
12 */
13 function eventcart_civicrm_config(&$config) {
14 if (isset(Civi::$statics[__FUNCTION__])) {
15 return;
16 }
17 Civi::$statics[__FUNCTION__] = 1;
18 Civi::dispatcher()->addListener('hook_civicrm_pageRun', 'CRM_Event_Cart_PageCallback::run');
19
20 _eventcart_civix_civicrm_config($config);
21 }
22
23 /**
24 * Implements hook_civicrm_xmlMenu().
25 *
26 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu
27 */
28 function eventcart_civicrm_xmlMenu(&$files) {
29 _eventcart_civix_civicrm_xmlMenu($files);
30 }
31
32 /**
33 * Implements hook_civicrm_install().
34 *
35 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install
36 */
37 function eventcart_civicrm_install() {
38 _eventcart_civix_civicrm_install();
39 }
40
41 /**
42 * Implements hook_civicrm_postInstall().
43 *
44 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall
45 */
46 function eventcart_civicrm_postInstall() {
47 _eventcart_civix_civicrm_postInstall();
48 }
49
50 /**
51 * Implements hook_civicrm_uninstall().
52 *
53 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall
54 */
55 function eventcart_civicrm_uninstall() {
56 _eventcart_civix_civicrm_uninstall();
57 }
58
59 /**
60 * Implements hook_civicrm_enable().
61 *
62 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
63 */
64 function eventcart_civicrm_enable() {
65 _eventcart_civix_civicrm_enable();
66 }
67
68 /**
69 * Implements hook_civicrm_disable().
70 *
71 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable
72 */
73 function eventcart_civicrm_disable() {
74 _eventcart_civix_civicrm_disable();
75 }
76
77 /**
78 * Implements hook_civicrm_upgrade().
79 *
80 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade
81 */
82 function eventcart_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) {
83 return _eventcart_civix_civicrm_upgrade($op, $queue);
84 }
85
86 /**
87 * Implements hook_civicrm_managed().
88 *
89 * Generate a list of entities to create/deactivate/delete when this module
90 * is installed, disabled, uninstalled.
91 *
92 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed
93 */
94 function eventcart_civicrm_managed(&$entities) {
95 _eventcart_civix_civicrm_managed($entities);
96 }
97
98 /**
99 * Implements hook_civicrm_angularModules().
100 *
101 * Generate a list of Angular modules.
102 *
103 * Note: This hook only runs in CiviCRM 4.5+. It may
104 * use features only available in v4.6+.
105 *
106 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_angularModules
107 */
108 function eventcart_civicrm_angularModules(&$angularModules) {
109 _eventcart_civix_civicrm_angularModules($angularModules);
110 }
111
112 /**
113 * Implements hook_civicrm_alterSettingsFolders().
114 *
115 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders
116 */
117 function eventcart_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) {
118 _eventcart_civix_civicrm_alterSettingsFolders($metaDataFolders);
119 }
120
121 /**
122 * Implements hook_civicrm_entityTypes().
123 *
124 * Declare entity types provided by this module.
125 *
126 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
127 */
128 function eventcart_civicrm_entityTypes(&$entityTypes) {
129 _eventcart_civix_civicrm_entityTypes($entityTypes);
130 }