summaryrefslogtreecommitdiff
path: root/modules/notification/helpers/notification_event.php
diff options
context:
space:
mode:
authorTim Almdal <tnalmdal@shaw.ca>2009-10-31 14:23:05 -0700
committerTim Almdal <tnalmdal@shaw.ca>2009-10-31 14:23:05 -0700
commit903b5f6f67faaf8d8b25d8efd279f0ebe669f4d2 (patch)
tree8896948042189818a6ab9c1e24397f9804780bd7 /modules/notification/helpers/notification_event.php
parent80b892915f7286d3cb8daef3ba12c012738cef28 (diff)
Add identity_change handlers to resolve the ownership issues of comments, subscription, items and tasks.
Diffstat (limited to 'modules/notification/helpers/notification_event.php')
-rw-r--r--modules/notification/helpers/notification_event.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php
index e6791071..b82e4f0f 100644
--- a/modules/notification/helpers/notification_event.php
+++ b/modules/notification/helpers/notification_event.php
@@ -56,6 +56,10 @@ class notification_event_Core {
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") {