summaryrefslogtreecommitdiffstats
path: root/modules-available/vmstore/hooks/main-warning.inc.php
blob: ca2d13823f1906c456bdebf20ebd02da15553b8d (plain) (blame)
1
2
3
4
5
6
7
8
9
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
}