3 require_once 'eventcart.civix.php';
5 use CRM_Eventcart_ExtensionUtil
as E
;
9 * Implements hook_civicrm_config().
11 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
13 function eventcart_civicrm_config(&$config) {
14 if (isset(Civi
::$statics[__FUNCTION__
])) {
17 Civi
::$statics[__FUNCTION__
] = 1;
18 Civi
::dispatcher()->addListener('hook_civicrm_pageRun', 'CRM_Event_Cart_PageCallback::run');
20 _eventcart_civix_civicrm_config($config);
24 * Implements hook_civicrm_xmlMenu().
26 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_xmlMenu
28 function eventcart_civicrm_xmlMenu(&$files) {
29 _eventcart_civix_civicrm_xmlMenu($files);
33 * Implements hook_civicrm_install().
35 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install
37 function eventcart_civicrm_install() {
38 _eventcart_civix_civicrm_install();
42 * Implements hook_civicrm_postInstall().
44 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_postInstall
46 function eventcart_civicrm_postInstall() {
47 _eventcart_civix_civicrm_postInstall();
51 * Implements hook_civicrm_uninstall().
53 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_uninstall
55 function eventcart_civicrm_uninstall() {
56 _eventcart_civix_civicrm_uninstall();
60 * Implements hook_civicrm_enable().
62 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
64 function eventcart_civicrm_enable() {
65 _eventcart_civix_civicrm_enable();
69 * Implements hook_civicrm_disable().
71 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_disable
73 function eventcart_civicrm_disable() {
74 _eventcart_civix_civicrm_disable();
78 * Implements hook_civicrm_upgrade().
80 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_upgrade
82 function eventcart_civicrm_upgrade($op, CRM_Queue_Queue
$queue = NULL) {
83 return _eventcart_civix_civicrm_upgrade($op, $queue);
87 * Implements hook_civicrm_managed().
89 * Generate a list of entities to create/deactivate/delete when this module
90 * is installed, disabled, uninstalled.
92 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_managed
94 function eventcart_civicrm_managed(&$entities) {
95 _eventcart_civix_civicrm_managed($entities);
99 * Implements hook_civicrm_angularModules().
101 * Generate a list of Angular modules.
103 * Note: This hook only runs in CiviCRM 4.5+. It may
104 * use features only available in v4.6+.
106 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_angularModules
108 function eventcart_civicrm_angularModules(&$angularModules) {
109 _eventcart_civix_civicrm_angularModules($angularModules);
113 * Implements hook_civicrm_alterSettingsFolders().
115 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_alterSettingsFolders
117 function eventcart_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) {
118 _eventcart_civix_civicrm_alterSettingsFolders($metaDataFolders);
122 * Implements hook_civicrm_entityTypes().
124 * Declare entity types provided by this module.
126 * @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_entityTypes
128 function eventcart_civicrm_entityTypes(&$entityTypes) {
129 _eventcart_civix_civicrm_entityTypes($entityTypes);