diff --git a/setup.php b/setup.php index 6c706ba..11112d2 100755 --- a/setup.php +++ b/setup.php @@ -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 ""; } +// Cron function : name= cron_plugin_PLUGINNAME +function cron_plugin_example(){ + echo "tttt"; +} ?>