From a4a4a84d79e95d34f80346c423b4e84f7af3f03d Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 14:45:13 +0200 Subject: Adding upstream version 1.1.0. Signed-off-by: Daniel Baumann --- library/Map/ProvidedHook/CubeLinks.php | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 library/Map/ProvidedHook/CubeLinks.php (limited to 'library/Map/ProvidedHook/CubeLinks.php') diff --git a/library/Map/ProvidedHook/CubeLinks.php b/library/Map/ProvidedHook/CubeLinks.php new file mode 100644 index 0000000..5f819b4 --- /dev/null +++ b/library/Map/ProvidedHook/CubeLinks.php @@ -0,0 +1,36 @@ +"host"); + foreach ($cube->getSlices() as $key => $val) { + $vars['_host_' . $key] = $val; + } + + $url = 'map'; + + $this->addActionLink( + $this->makeUrl($url, $vars), + $view->translate('Show on map'), + $view->translate('This shows all matching hosts and their current state on the map module'), + 'globe' + ); + } +} -- cgit v1.2.3