-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaegirbackups.php
48 lines (43 loc) · 1.2 KB
/
aegirbackups.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
<?php
require_once 'aegirbackups.civix.php';
use CRM_Aegirbackups_ExtensionUtil as E;
/**
* Implements hook_civicrm_config().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_config/
*/
function aegirbackups_civicrm_config(&$config) {
_aegirbackups_civix_civicrm_config($config);
}
/**
* Implements hook_civicrm_install().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_install
*/
function aegirbackups_civicrm_install() {
_aegirbackups_civix_civicrm_install();
}
/**
* Implements hook_civicrm_enable().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_enable
*/
function aegirbackups_civicrm_enable() {
_aegirbackups_civix_civicrm_enable();
}
/**
* Implements hook_civicrm_navigationMenu().
*
* @link https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_navigationMenu
*/
function aegirbackups_civicrm_navigationMenu(&$menu) {
_aegirbackups_civix_insert_navigation_menu($menu, 'Administer', [
'label' => E::ts('Backups'),
'name' => 'aegir_backups',
'url' => 'civicrm/admin/backups',
'permission' => 'administer CiviCRM',
'operator' => 'OR',
'separator' => 0,
]);
_aegirbackups_civix_navigationMenu($menu);
}