Updated the LaTeX header for letters
[civicrm-core.git] / ext / eventcart / eventcart.php
CommitLineData
77458d26 1<?php
2
3require_once 'eventcart.civix.php';
4// phpcs:disable
5use 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 */
13function eventcart_civicrm_config(&$config) {
b8f2a197
MW
14 if (isset(Civi::$statics[__FUNCTION__])) {
15 return;
16 }
17 Civi::$statics[__FUNCTION__] = 1;
023f2c03 18 // Since as a hidden extension it's always enabled, until this is a "real" extension you can turn off we need to check the legacy setting.
19 if ((bool) Civi::settings()->get('enable_cart')) {
20 Civi::dispatcher()->addListener('hook_civicrm_pageRun', 'CRM_Event_Cart_PageCallback::run');
21 }
b8f2a197 22
77458d26 23 _eventcart_civix_civicrm_config($config);
24}
25
77458d26 26/**
27 * Implements hook_civicrm_install().
28 *
29 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install
30 */
31function eventcart_civicrm_install() {
32 _eventcart_civix_civicrm_install();
33}
34
35/**
36 * Implements hook_civicrm_postInstall().
37 *
38 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall
39 */
40function eventcart_civicrm_postInstall() {
41 _eventcart_civix_civicrm_postInstall();
42}
43
44/**
45 * Implements hook_civicrm_uninstall().
46 *
47 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall
48 */
49function eventcart_civicrm_uninstall() {
50 _eventcart_civix_civicrm_uninstall();
51}
52
53/**
54 * Implements hook_civicrm_enable().
55 *
56 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
57 */
58function eventcart_civicrm_enable() {
59 _eventcart_civix_civicrm_enable();
60}
61
62/**
63 * Implements hook_civicrm_disable().
64 *
65 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable
66 */
67function eventcart_civicrm_disable() {
68 _eventcart_civix_civicrm_disable();
69}
70
71/**
72 * Implements hook_civicrm_upgrade().
73 *
74 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade
75 */
76function eventcart_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) {
77 return _eventcart_civix_civicrm_upgrade($op, $queue);
78}
79
77458d26 80/**
81 * Implements hook_civicrm_entityTypes().
82 *
83 * Declare entity types provided by this module.
84 *
85 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
86 */
87function eventcart_civicrm_entityTypes(&$entityTypes) {
88 _eventcart_civix_civicrm_entityTypes($entityTypes);
89}