Commit | Line | Data |
---|---|---|
71a6ba5c | 1 | <?php |
e751ae55 AE |
2 | |
3 | require_once 'trustcommerce.civix.php'; | |
4 | use CRM_TrustCommerce_ExtensionUtil as E; | |
5 | ||
6 | /** | |
7 | * Implements hook_civicrm_config(). | |
71a6ba5c | 8 | * |
e751ae55 | 9 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_config |
71a6ba5c | 10 | */ |
e751ae55 AE |
11 | function trustcommerce_civicrm_config(&$config) { |
12 | _trustcommerce_civix_civicrm_config($config); | |
13 | } | |
71a6ba5c | 14 | |
b19584fa | 15 | /** |
e751ae55 AE |
16 | * Implements hook_civicrm_xmlMenu(). |
17 | * | |
18 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_xmlMenu | |
19 | */ | |
20 | function trustcommerce_civicrm_xmlMenu(&$files) { | |
21 | _trustcommerce_civix_civicrm_xmlMenu($files); | |
22 | } | |
b19584fa LMM |
23 | |
24 | /** | |
e751ae55 AE |
25 | * Implements hook_civicrm_install(). |
26 | * | |
27 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_install | |
b19584fa | 28 | */ |
e751ae55 AE |
29 | function trustcommerce_civicrm_install() { |
30 | _trustcommerce_civix_civicrm_install(); | |
31 | } | |
71a6ba5c | 32 | |
b19584fa | 33 | /** |
e751ae55 AE |
34 | * Implements hook_civicrm_postInstall(). |
35 | * | |
36 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_postInstall | |
b19584fa | 37 | */ |
e751ae55 AE |
38 | function trustcommerce_civicrm_postInstall() { |
39 | _trustcommerce_civix_civicrm_postInstall(); | |
40 | } | |
b19584fa LMM |
41 | |
42 | /** | |
e751ae55 AE |
43 | * Implements hook_civicrm_uninstall(). |
44 | * | |
45 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_uninstall | |
b19584fa | 46 | */ |
e751ae55 AE |
47 | function trustcommerce_civicrm_uninstall() { |
48 | _trustcommerce_civix_civicrm_uninstall(); | |
49 | } | |
0b6767d8 | 50 | |
e751ae55 AE |
51 | /** |
52 | * Implements hook_civicrm_enable(). | |
53 | * | |
54 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_enable | |
55 | */ | |
56 | function trustcommerce_civicrm_enable() { | |
57 | _trustcommerce_civix_civicrm_enable(); | |
58 | } | |
71a6ba5c | 59 | |
e751ae55 AE |
60 | /** |
61 | * Implements hook_civicrm_disable(). | |
62 | * | |
63 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_disable | |
64 | */ | |
65 | function trustcommerce_civicrm_disable() { | |
66 | _trustcommerce_civix_civicrm_disable(); | |
67 | } | |
2ff31643 | 68 | |
e751ae55 AE |
69 | /** |
70 | * Implements hook_civicrm_upgrade(). | |
71 | * | |
72 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_upgrade | |
73 | */ | |
74 | function trustcommerce_civicrm_upgrade($op, CRM_Queue_Queue $queue = NULL) { | |
75 | return _trustcommerce_civix_civicrm_upgrade($op, $queue); | |
76 | } | |
2ff31643 | 77 | |
e751ae55 AE |
78 | /** |
79 | * Implements hook_civicrm_managed(). | |
80 | * | |
81 | * Generate a list of entities to create/deactivate/delete when this module | |
82 | * is installed, disabled, uninstalled. | |
83 | * | |
84 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_managed | |
85 | */ | |
86 | function trustcommerce_civicrm_managed(&$entities) { | |
87 | _trustcommerce_civix_civicrm_managed($entities); | |
88 | } | |
2ff31643 | 89 | |
e751ae55 AE |
90 | /** |
91 | * Implements 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 | |
98 | */ | |
99 | function trustcommerce_civicrm_caseTypes(&$caseTypes) { | |
100 | _trustcommerce_civix_civicrm_caseTypes($caseTypes); | |
101 | } | |
2ff31643 | 102 | |
e751ae55 AE |
103 | /** |
104 | * Implements hook_civicrm_angularModules(). | |
105 | * | |
106 | * Generate a list of Angular modules. | |
107 | * | |
108 | * Note: This hook only runs in CiviCRM 4.5+. It may | |
109 | * use features only available in v4.6+. | |
110 | * | |
111 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_angularModules | |
112 | */ | |
113 | function trustcommerce_civicrm_angularModules(&$angularModules) { | |
114 | _trustcommerce_civix_civicrm_angularModules($angularModules); | |
115 | } | |
2ff31643 | 116 | |
e751ae55 AE |
117 | /** |
118 | * Implements hook_civicrm_alterSettingsFolders(). | |
119 | * | |
120 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_alterSettingsFolders | |
121 | */ | |
122 | function trustcommerce_civicrm_alterSettingsFolders(&$metaDataFolders = NULL) { | |
123 | _trustcommerce_civix_civicrm_alterSettingsFolders($metaDataFolders); | |
124 | } | |
2ff31643 | 125 | |
e751ae55 | 126 | // --- Functions below this ship commented out. Uncomment as required. --- |
71a6ba5c | 127 | |
e751ae55 AE |
128 | /** |
129 | * Implements hook_civicrm_preProcess(). | |
130 | * | |
131 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_preProcess | |
132 | * | |
133 | function trustcommerce_civicrm_preProcess($formName, &$form) { | |
71a6ba5c | 134 | |
e751ae55 | 135 | } // */ |
c24a57fa | 136 | |
e751ae55 AE |
137 | /** |
138 | * Implements hook_civicrm_navigationMenu(). | |
139 | * | |
140 | * @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_navigationMenu | |
141 | * | |
142 | function trustcommerce_civicrm_navigationMenu(&$menu) { | |
143 | _trustcommerce_civix_insert_navigation_menu($menu, NULL, array( | |
144 | 'label' => E::ts('The Page'), | |
145 | 'name' => 'the_page', | |
146 | 'url' => 'civicrm/the-page', | |
147 | 'permission' => 'access CiviReport,access CiviContribute', | |
148 | 'operator' => 'OR', | |
149 | 'separator' => 0, | |
150 | )); | |
151 | _trustcommerce_civix_navigationMenu($menu); | |
152 | } // */ |