-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathlogviewer.php
50 lines (45 loc) · 1.24 KB
/
logviewer.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
50
<?php
require_once 'logviewer.civix.php';
use CRM_Logviewer_ExtensionUtil as E;
/**
* Implements hook_civicrm_config().
*
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_config
*/
function logviewer_civicrm_config(&$config) {
_logviewer_civix_civicrm_config($config);
}
/**
* Implements hook_civicrm_install().
*
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_install
*/
function logviewer_civicrm_install() {
_logviewer_civix_civicrm_install();
}
/**
* Implements hook_civicrm_enable().
*
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_enable
*/
function logviewer_civicrm_enable() {
_logviewer_civix_civicrm_enable();
}
/**
* Implements hook_civicrm_navigationMenu().
*
* @link http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_navigationMenu
*
*/
function logviewer_civicrm_navigationMenu(&$navMenu) {
_logviewer_civix_insert_navigation_menu($navMenu, 'Administer/Administration Console', [
'label' => E::ts('View Log'),
'name' => 'Log Viewer',
'url' => 'civicrm/admin/logviewer',
'permission' => 'administer CiviCRM',
'operator' => 'AND',
'separator' => NULL,
'active' => 1,
]);
_logviewer_civix_navigationMenu($menu);
}