diff options
author | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-31 14:23:05 -0700 |
---|---|---|
committer | Tim Almdal <tnalmdal@shaw.ca> | 2009-10-31 14:23:05 -0700 |
commit | 903b5f6f67faaf8d8b25d8efd279f0ebe669f4d2 (patch) | |
tree | 8896948042189818a6ab9c1e24397f9804780bd7 /modules/notification/helpers | |
parent | 80b892915f7286d3cb8daef3ba12c012738cef28 (diff) |
Add identity_change handlers to resolve the ownership issues of comments, subscription, items and tasks.
Diffstat (limited to 'modules/notification/helpers')
-rw-r--r-- | modules/notification/helpers/notification_event.php | 4 |
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") { |