aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorKevin Jardine <kevinjardine@yahoo.com>2012-04-26 13:17:00 +0200
committerKevin Jardine <kevinjardine@yahoo.com>2012-04-26 13:17:00 +0200
commita9a76a300972a6451aa45a83e094e697d4c51bf6 (patch)
tree6dabcc73791146e65527faa8d9b67a08646f10ba /start.php
parent58126731fe957c604c1989d59d41534f8fbcf04b (diff)
downloadelgg-a9a76a300972a6451aa45a83e094e697d4c51bf6.tar.gz
elgg-a9a76a300972a6451aa45a83e094e697d4c51bf6.tar.bz2
Reminder messages are now actually queued for sending (requires message_queue plugin to actually send).
Diffstat (limited to 'start.php')
-rw-r--r--start.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/start.php b/start.php
index 86a94fbd9..4c17c719b 100644
--- a/start.php
+++ b/start.php
@@ -16,6 +16,8 @@ elgg_register_event_handler('init','system','event_calendar_init');
function event_calendar_init() {
elgg_register_library('elgg:event_calendar', elgg_get_plugins_path() . 'event_calendar/models/model.php');
+
+ elgg_register_plugin_hook_handler('cron', 'fiveminute', 'event_calendar_handle_reminders_cron',400);
// Register a page handler, so we can have nice URLs
elgg_register_page_handler('event_calendar','event_calendar_page_handler');
@@ -400,3 +402,8 @@ function event_calendar_handle_leave($event, $object_type, $object) {
event_calendar_remove_personal_event($event_id,$user_guid);
}
}
+
+function event_calendar_handle_reminders_cron() {
+ elgg_load_library('elgg:event_calendar');
+ event_calendar_queue_reminders();
+}