mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
[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:
parent
d765abf5cf
commit
79992b49d4
13
setup.php
13
setup.php
@ -205,8 +205,17 @@ function plugin_example_check_prerequisites(){
|
|||||||
|
|
||||||
|
|
||||||
// Check configuration process for plugin : need to return true if succeeded
|
// 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
|
||||||
return 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
|
// Define rights for the plugin types
|
||||||
|
Loading…
x
Reference in New Issue
Block a user