diff options
| author | Simon Rettberg | 2016-05-18 18:04:56 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2016-05-18 18:04:56 +0200 |
| commit | 2e18b36a287ad9b25619f9e2a073dcedf6d620ee (patch) | |
| tree | 96d802fdc1c21ee9aa9b4d89a6611db7d8502433 /modules-available/dozmod/hooks | |
| parent | Modularized baseconfig fetching (api) (diff) | |
| download | slx-admin-2e18b36a287ad9b25619f9e2a073dcedf6d620ee.tar.gz slx-admin-2e18b36a287ad9b25619f9e2a073dcedf6d620ee.tar.xz slx-admin-2e18b36a287ad9b25619f9e2a073dcedf6d620ee.zip | |
MORE WMORK
Diffstat (limited to 'modules-available/dozmod/hooks')
| -rw-r--r-- | modules-available/dozmod/hooks/main-warning.inc.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules-available/dozmod/hooks/main-warning.inc.php b/modules-available/dozmod/hooks/main-warning.inc.php new file mode 100644 index 00000000..ffa87692 --- /dev/null +++ b/modules-available/dozmod/hooks/main-warning.inc.php @@ -0,0 +1,11 @@ +<?php + +/* + * Show notification in main window if there are images that should be deleted and are waiting for confirmation + */ + +$res = Database::queryFirst("SELECT Count(*) AS cnt FROM sat.imageversion WHERE deletestate = 'SHOULD_DELETE'", array(), true); +if (isset($res['cnt']) && $res['cnt'] > 0) { + Message::addInfo('dozmod.images-pending-delete-exist', true, $res['cnt']); +} +unset($res); |
