summaryrefslogtreecommitdiffstats
path: root/configuration.php
diff options
context:
space:
mode:
Diffstat (limited to 'configuration.php')
-rw-r--r--configuration.php19
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);
+}