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