aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/notification.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-02 10:28:33 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-05-02 10:28:33 +0000
commitdb727a00f06d95da0b6d3a3356b1d60c01feabe3 (patch)
tree73078a1e48d3445ebc52a5cfc4092d85d255841b /engine/lib/notification.php
parentd24f9e96ab90a059266f6a6aa77e8688c02ea95f (diff)
downloadelgg-db727a00f06d95da0b6d3a3356b1d60c01feabe3.tar.gz
elgg-db727a00f06d95da0b6d3a3356b1d60c01feabe3.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Now registers email handler (oops) git-svn-id: https://code.elgg.org/elgg/trunk@620 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/notification.php')
-rw-r--r--engine/lib/notification.php12
1 files changed, 12 insertions, 0 deletions
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