mirror of
https://github.com/pluginsGLPI/example.git
synced 2025-05-04 18:08:42 +02:00
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:
parent
4c0349872a
commit
eed7ac5f9c
@ -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";
|
||||
}
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user