From db727a00f06d95da0b6d3a3356b1d60c01feabe3 Mon Sep 17 00:00:00 2001 From: icewing Date: Fri, 2 May 2008 10:28:33 +0000 Subject: Marcus Povey * Now registers email handler (oops) git-svn-id: https://code.elgg.org/elgg/trunk@620 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/notification.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'engine/lib/notification.php') diff --git a/engine/lib/notification.php b/engine/lib/notification.php index 8fcd9e9a3..15448f720 100644 --- a/engine/lib/notification.php +++ b/engine/lib/notification.php @@ -98,4 +98,16 @@ return mail($to, $subject, $message, $headers); } + + /** + * Correctly initialise notifications and register the email handler. + * + */ + function notification_init() + { + register_notification_handler("email", "email_notify_handler"); + } + + // Register a startup event + register_event_handler('init','system','notification_init',0); ?> \ No newline at end of file -- cgit v1.2.3