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