mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
fic hook name (plugin_example_cron_info) + use localized string
git-svn-id: https://forge.glpi-project.org/svn/example/trunk@95 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
parent
365fe56a03
commit
4f0bbf654f
7
hook.php
7
hook.php
@ -675,13 +675,14 @@ function plugin_example_cron_sample_run($task) {
|
|||||||
*
|
*
|
||||||
* @return array of strings
|
* @return array of strings
|
||||||
*/
|
*/
|
||||||
function plugin_example_cron_sample_info($name) {
|
function plugin_example_cron_info($name) {
|
||||||
|
global $LANG;
|
||||||
|
|
||||||
switch ($name) {
|
switch ($name) {
|
||||||
case 'sample':
|
case 'sample':
|
||||||
return array (
|
return array (
|
||||||
'description' => "Example cron task", // Mandatory
|
'description' => $LANG['plugin_example']['test'], // Mandatory
|
||||||
'parameter' => "Example parameter"); // Optional
|
'parameter' => $LANG['plugin_example']['test']); // Optional
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return array();
|
return array();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user