-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathusermenu.php
More file actions
50 lines (43 loc) · 1.08 KB
/
usermenu.php
File metadata and controls
50 lines (43 loc) · 1.08 KB
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
<?php
/**
* @file
* Usermenu extension file.
*/
require_once 'usermenu.civix.php';
/**
* Implements hook_civicrm_config().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
*/
function usermenu_civicrm_config(&$config) {
_usermenu_civix_civicrm_config($config);
}
/**
* Implements hook_civicrm_install().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install
*/
function usermenu_civicrm_install() {
_usermenu_civix_civicrm_install();
}
/**
* Implements hook_civicrm_enable().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
*/
function usermenu_civicrm_enable() {
_usermenu_civix_civicrm_enable();
}
/**
* Implements hook_civicrm_coreResourceList().
*/
function usermenu_civicrm_coreResourceList(&$items, $region) {
$hooks = [
new CRM_Usermenu_Hooks_CoreResourceList_HomeMenu($items, $region),
new CRM_Usermenu_Hooks_CoreResourceList_Stylesheets($items, $region),
new CRM_Usermenu_Hooks_CoreResourceList_UserMenu($items, $region),
];
foreach ($hooks as $hook) {
$hook->run();
}
}