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:
remicollet 2009-09-04 17:02:19 +00:00
parent 365fe56a03
commit 4f0bbf654f

View File

@ -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();