Commit | Line | Data |
---|---|---|
b3acfd03 TO |
1 | <?php |
2 | ||
3 | require_once 'angularex.civix.php'; | |
4 | ||
5 | /** | |
6 | * Implementation of hook_civicrm_config | |
7 | * | |
8 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_config | |
d7c8cf03 | 9 | * @param $config |
b3acfd03 TO |
10 | */ |
11 | function angularex_civicrm_config(&$config) { | |
12 | _angularex_civix_civicrm_config($config); | |
13 | } | |
14 | ||
15 | /** | |
16 | * Implementation of hook_civicrm_xmlMenu | |
17 | * | |
18 | * @param $files array(string) | |
19 | * | |
20 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_xmlMenu | |
21 | */ | |
22 | function angularex_civicrm_xmlMenu(&$files) { | |
23 | _angularex_civix_civicrm_xmlMenu($files); | |
24 | } | |
25 | ||
26 | /** | |
27 | * Implementation of hook_civicrm_install | |
28 | * | |
29 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_install | |
30 | */ | |
31 | function angularex_civicrm_install() { | |
32 | return _angularex_civix_civicrm_install(); | |
33 | } | |
34 | ||
35 | /** | |
36 | * Implementation of hook_civicrm_uninstall | |
37 | * | |
38 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_uninstall | |
39 | */ | |
40 | function angularex_civicrm_uninstall() { | |
41 | return _angularex_civix_civicrm_uninstall(); | |
42 | } | |
43 | ||
44 | /** | |
45 | * Implementation of hook_civicrm_enable | |
46 | * | |
47 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_enable | |
48 | */ | |
49 | function angularex_civicrm_enable() { | |
50 | return _angularex_civix_civicrm_enable(); | |
51 | } | |
52 | ||
53 | /** | |
54 | * Implementation of hook_civicrm_disable | |
55 | * | |
56 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_disable | |
57 | */ | |
58 | function angularex_civicrm_disable() { | |
59 | return _angularex_civix_civicrm_disable(); | |
60 | } | |
61 | ||
62 | /** | |
63 | * Implementation of hook_civicrm_upgrade | |
64 | * | |
65 | * @param $op string, the type of operation being performed; 'check' or 'enqueue' | |
66 | * @param $queue CRM_Queue_Queue, (for 'enqueue') the modifiable list of pending up upgrade tasks | |
67 | * | |
68 | * @return mixed based on op. for 'check', returns array(boolean) (TRUE if upgrades are pending) | |
69 | * for 'enqueue', returns void | |
70 | * | |
71 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_upgrade | |
72 | */ | |
73 | function angularex_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { | |
74 | return _angularex_civix_civicrm_upgrade($op, $queue); | |
75 | } | |
76 | ||
77 | /** | |
78 | * Implementation of hook_civicrm_managed | |
79 | * | |
80 | * Generate a list of entities to create/deactivate/delete when this module | |
81 | * is installed, disabled, uninstalled. | |
82 | * | |
83 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_managed | |
d7c8cf03 | 84 | * @param $entities |
b3acfd03 TO |
85 | */ |
86 | function angularex_civicrm_managed(&$entities) { | |
87 | return _angularex_civix_civicrm_managed($entities); | |
88 | } | |
89 | ||
90 | /** | |
91 | * Implementation of hook_civicrm_caseTypes | |
92 | * | |
93 | * Generate a list of case-types | |
94 | * | |
95 | * Note: This hook only runs in CiviCRM 4.4+. | |
96 | * | |
97 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_caseTypes | |
d7c8cf03 | 98 | * @param $caseTypes |
b3acfd03 TO |
99 | */ |
100 | function angularex_civicrm_caseTypes(&$caseTypes) { | |
101 | _angularex_civix_civicrm_caseTypes($caseTypes); | |
102 | } | |
103 | ||
104 | /** | |
105 | * Implementation of hook_civicrm_alterSettingsFolders | |
106 | * | |
107 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_alterSettingsFolders | |
d7c8cf03 | 108 | * @param null $metaDataFolders |
b3acfd03 TO |
109 | */ |
110 | function angularex_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { | |
111 | _angularex_civix_civicrm_alterSettingsFolders($metaDataFolders); | |
112 | } | |
113 | ||
a1a55b61 EM |
114 | /** |
115 | * @param $angularModule | |
116 | */ | |
b3acfd03 | 117 | function angularex_civicrm_angularModules(&$angularModule) { |
b7c0a88f | 118 | $angularModule['example'] = [ |
ad7abea2 | 119 | 'ext' => 'org.civicrm.angularex', |
b7c0a88f | 120 | 'js' => ['js/*.js'], |
121 | 'partials' => ['partials'], | |
122 | ]; | |
a1a55b61 | 123 | } |