-
Notifications
You must be signed in to change notification settings - Fork 0
/
shippo.php
49 lines (43 loc) · 1.22 KB
/
shippo.php
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
<?php
require_once 'shippo.civix.php';
use CRM_Shippo_ExtensionUtil as E;
/**
* Implements hook_civicrm_config().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
*/
function shippo_civicrm_config(&$config): void {
_shippo_civix_civicrm_config($config);
}
/**
* Implements hook_civicrm_install().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install
*/
function shippo_civicrm_install(): void {
_shippo_civix_civicrm_install();
}
/**
* Implements hook_civicrm_enable().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
*/
function shippo_civicrm_enable(): void {
_shippo_civix_civicrm_enable();
}
/**
* Implements hook_civicrm_navigationMenu().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu
*/
function shippo_civicrm_navigationMenu(&$menu) {
_shippo_civix_insert_navigation_menu($menu, 'Administer/System Settings', [
'label' => E::ts('Shippo Settings'),
'name' => 'shippo_setting',
'url' => CRM_Utils_System::url('civicrm/admin/shippo', 'reset=1', TRUE),
'permission' => 'administer CiviCRM',
'operator' => 'OR',
'separator' => 0,
]);
_shippo_civix_navigationMenu($menu);
}