diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:27:46 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-14 13:27:46 +0000 |
commit | bee4bf82bcf2cc61a803310ea557cb2633d7e021 (patch) | |
tree | fdc7483ceea33373b6cfa4a8c20c11cb02a2676a /configuration.php | |
parent | Initial commit. (diff) | |
download | icingaweb2-module-pnp-bee4bf82bcf2cc61a803310ea557cb2633d7e021.tar.xz icingaweb2-module-pnp-bee4bf82bcf2cc61a803310ea557cb2633d7e021.zip |
Adding upstream version 1.1.0.upstream/1.1.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'configuration.php')
-rw-r--r-- | configuration.php | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/configuration.php b/configuration.php new file mode 100644 index 0000000..76713e5 --- /dev/null +++ b/configuration.php @@ -0,0 +1,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); +} |