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
11
setup.php
11
setup.php
@ -205,9 +205,18 @@ 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
|
||||
function plugin_example_haveTypeRight($type,$right){
|
||||
|
Loading…
x
Reference in New Issue
Block a user