From 4f0bbf654fe27004a485c3714cb51d4195e5e955 Mon Sep 17 00:00:00 2001 From: remicollet Date: Fri, 4 Sep 2009 17:02:19 +0000 Subject: [PATCH] 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 --- hook.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hook.php b/hook.php index 3b58af7..a603a79 100644 --- a/hook.php +++ b/hook.php @@ -675,13 +675,14 @@ function plugin_example_cron_sample_run($task) { * * @return array of strings */ -function plugin_example_cron_sample_info($name) { +function plugin_example_cron_info($name) { + global $LANG; switch ($name) { case 'sample': return array ( - 'description' => "Example cron task", // Mandatory - 'parameter' => "Example parameter"); // Optional + 'description' => $LANG['plugin_example']['test'], // Mandatory + 'parameter' => $LANG['plugin_example']['test']); // Optional break; } return array();