-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfiguration.php
More file actions
31 lines (24 loc) · 966 Bytes
/
configuration.php
File metadata and controls
31 lines (24 loc) · 966 Bytes
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
<?php
/** @var \Icinga\Application\Modules\Module $this */
$this->providePermission('servicenow/template/edit', $this->translate('Allow the user to edit templates'));
$section = $this->menuSection(N_('ServiceNow'))
->setUrl('servicenow/incidents')
->setPriority(63)
->setIcon('tasks');
$section->add(N_('Incidents'))->setUrl('servicenow/incidents')->setPriority(10);
$section->add(N_('Templates'))->setUrl('servicenow/templates')->setPriority(20);
$this->provideConfigTab('daemon', [
'label' => t('ServiceNow Daemon'),
'title' => t('Configure the ServiceNow daemon'),
'url' => 'config/daemon',
]);
$this->provideConfigTab('database', [
'label' => t('Database'),
'title' => t('Configure the database backend'),
'url' => 'config/database'
]);
$this->provideConfigTab('incident', [
'label' => t('Incident Fields'),
'title' => t('Load incident fields from the ServiceNow API'),
'url' => 'config/incident'
]);