summaryrefslogtreecommitdiffstats
path: root/modules-available/dozmod/hooks/main-warning.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules-available/dozmod/hooks/main-warning.inc.php')
-rw-r--r--modules-available/dozmod/hooks/main-warning.inc.php11
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);