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.php22
1 files changed, 3 insertions, 19 deletions
diff --git a/modules/notification/helpers/notification_event.php b/modules/notification/helpers/notification_event.php
index dde328d8..4ea0be05 100644
--- a/modules/notification/helpers/notification_event.php
+++ b/modules/notification/helpers/notification_event.php
@@ -52,23 +52,7 @@ class notification_event_Core {
->delete_all();
}
- static function operation($name, $item) {
- if ($name == "add") {
- $id = Session::instance()->get("notification_batch_item_id");
- if ($id && $item->id != $id) {
- notification::send_batch_add($id);
- }
- Session::instance()->set("notification_batch_item_id", $item->id);
- }
+ static function batch_complete() {
+ notification::send_pending_notifications();
}
-
- static function end_operation($name) {
- if ($name == "add") {
- $id = Session::instance()->get_once("notification_batch_item_id");
- if ($id) {
- notification::send_batch_add($id);
- }
- }
- }
-
-}
+} \ No newline at end of file