summaryrefslogtreecommitdiff
path: root/modules/notification/helpers/notification_event.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/notification/helpers/notification_event.php')
-rw-r--r--modules/notification/helpers/notification_event.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php
index 3a369155..b82e4f0f 100644
--- a/modules/notification/helpers/notification_event.php
+++ b/modules/notification/helpers/notification_event.php
@@ -52,6 +52,14 @@ class notification_event_Core {
}
}
+ static function user_deleted($user) {
+ Database::instance()->query("DELETE FROM {subscriptions} where user_id = {$user->id}");
+ }
+
+ static function identity_provider_changed($old_provider, $new_provider) {
+ Database::instance()->query("DELETE FROM {subscriptions}");
+ }
+
static function comment_created($comment) {
try {
if ($comment->state == "published") {