Hourly reset introduced
[mailer.git] / inc / functions.php
index e07307acb584b51404c1ecd3a9d6b2de1ebd226f..1c748c4455fa419f6edf431ecba5cdd74b9fc585 100644 (file)
@@ -2005,6 +2005,15 @@ function doReset () {
        runFilterChain('reset');
 }
 
+// Enables the reset mode (hourly, weekly and monthly) and runs it
+function doHourly () {
+       // Enable the hourly reset mode
+       $GLOBALS['hourly_enabled'] = true;
+
+       // Run filters (one always!)
+       runFilterChain('hourly');
+}
+
 // Our shutdown-function
 function shutdown () {
        // Call the filter chain 'shutdown'