plugin cron system

git-svn-id: https://forge.glpi-project.org/svn/example/trunk@9 349b9182-4a13-0410-896f-e5e9767dd1b3
This commit is contained in:
moyooo 2006-12-18 21:49:09 +00:00
parent 4c0349872a
commit eed7ac5f9c

View File

@ -58,7 +58,8 @@ function plugin_init_example() {
$PLUGIN_HOOKS['headings_action']['example'] = 'plugin_headings_actions_example';
// Display on central page
$PLUGIN_HOOKS['central_action']['example'] = 'plugin_central_action_example';
// Cron action
$plugin_hooks['cron']['example'] = DAY_TIMESTAMP;
}
@ -216,4 +217,8 @@ function plugin_central_action_example(){
echo "</div>";
}
// Cron function : name= cron_plugin_PLUGINNAME
function cron_plugin_example(){
echo "tttt";
}
?>