diff options
Diffstat (limited to 'modules-available/vmstore')
-rw-r--r-- | modules-available/vmstore/hooks/main-warning.inc.php | 10 | ||||
-rw-r--r-- | modules-available/vmstore/lang/de/messages.json | 3 | ||||
-rw-r--r-- | modules-available/vmstore/lang/en/messages.json | 3 |
3 files changed, 16 insertions, 0 deletions
diff --git a/modules-available/vmstore/hooks/main-warning.inc.php b/modules-available/vmstore/hooks/main-warning.inc.php new file mode 100644 index 00000000..ca2d1382 --- /dev/null +++ b/modules-available/vmstore/hooks/main-warning.inc.php @@ -0,0 +1,10 @@ +<?php + +/* + * Hook for main page: Show warning if vmstore not configured yet; set "warning" flag if so + */ + +if (!is_array(Property::getVmStoreConfig())) { + Message::addError('vmstore.vmstore-not-configured', true); // Always specify module prefix since this is running in main + $needSetup = true; // Set $needSetup to true if you want a warning badge to appear in the menu +} diff --git a/modules-available/vmstore/lang/de/messages.json b/modules-available/vmstore/lang/de/messages.json new file mode 100644 index 00000000..993d355d --- /dev/null +++ b/modules-available/vmstore/lang/de/messages.json @@ -0,0 +1,3 @@ +{ + "vmstore-not-configured": "Es ist noch kein Speicherort f\u00fcr die Virtuellen Maschinen festgelegt." +}
\ No newline at end of file diff --git a/modules-available/vmstore/lang/en/messages.json b/modules-available/vmstore/lang/en/messages.json new file mode 100644 index 00000000..9ac360eb --- /dev/null +++ b/modules-available/vmstore/lang/en/messages.json @@ -0,0 +1,3 @@ +{ + "vmstore-not-configured": "A location for the virtual machine is not set yet." +}
\ No newline at end of file |