mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
improved hook for example
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@93 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
15b8a6cdf8
commit
365fe56a03
11
hook.php
11
hook.php
@ -677,9 +677,14 @@ function plugin_example_cron_sample_run($task) {
|
||||
*/
|
||||
function plugin_example_cron_sample_info($name) {
|
||||
|
||||
return array (
|
||||
'description' => "Example cron task", // Mandatory
|
||||
'parameter' => "Example parameter"); // Optional
|
||||
switch ($name) {
|
||||
case 'sample':
|
||||
return array (
|
||||
'description' => "Example cron task", // Mandatory
|
||||
'parameter' => "Example parameter"); // Optional
|
||||
break;
|
||||
}
|
||||
return array();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user