summaryrefslogtreecommitdiffstats
path: root/configuration.php
blob: 76713e558fc4a3f6b3000e5e84de55f5061f951a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

/** @var $this Icinga\Application\Modules\Module */
$this->provideConfigTab('config', array(
    'title' => $this->translate('Configure this module'),
    'label' => $this->translate('Config'),
    'url' => 'config'
));


$menuDisabled = $this->getConfig()->get('pnp4nagios', 'menu_disabled');
if (! $menuDisabled) {
    /** @var \Icinga\Web\Navigation\NavigationItem $section */
    $section = $this->menuSection('pnp');
    $section->setLabel('PNP')
        ->setUrl('pnp')
        ->setIcon('chart-line')
        ->setPriority(50);
}