[example] add option to _check_config

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@69 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
remicollet 2009-03-17 18:48:39 +00:00
parent d765abf5cf
commit 79992b49d4

View File

@ -205,8 +205,17 @@ function plugin_example_check_prerequisites(){
// Check configuration process for plugin : need to return true if succeeded
function plugin_example_check_config(){
// Can display a message only if failure and $verbose is true
function plugin_example_check_config($verbose=false){
global $LANG;
if (true) { // Your configuration check
return true;
}
if ($verbose) {
echo $LANG['plugins'][2];
}
return false;
}
// Define rights for the plugin types