diff options
author | Jakub Senko <jakubsenko@gmail.com> | 2019-02-25 14:19:08 +0100 |
---|---|---|
committer | Jakub Senko <jakubsenko@gmail.com> | 2019-02-25 14:19:08 +0100 |
commit | 44fb54b9b72eb1a01543e14615fdc8ec43e73a64 (patch) | |
tree | 2423542675d69748726d6e9351c0556b535bb6a0 /phpBB/index.php | |
parent | 33afd3f350b60bd60581e7e0292381619da96df2 (diff) | |
download | forums-44fb54b9b72eb1a01543e14615fdc8ec43e73a64.tar forums-44fb54b9b72eb1a01543e14615fdc8ec43e73a64.tar.gz forums-44fb54b9b72eb1a01543e14615fdc8ec43e73a64.tar.bz2 forums-44fb54b9b72eb1a01543e14615fdc8ec43e73a64.tar.xz forums-44fb54b9b72eb1a01543e14615fdc8ec43e73a64.zip |
[ticket/15978] Add core.index_mark_notification_after
PHPBB3-15978
Diffstat (limited to 'phpBB/index.php')
-rw-r--r-- | phpBB/index.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/index.php b/phpBB/index.php index 4e37782206..13b914abd3 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -55,6 +55,17 @@ if (($mark_notification = $request->variable('mark_notification', 0))) $notification->mark_read(); + /** + * You can use this event to perform additional tasks or redirect user elsewhere. + * + * @event core.index_mark_notification_after + * @var int mark_notification Notification ID + * @var \phpbb\notification\type\type_interface notification Notification instance + * @since 3.2.6-RC1 + */ + $vars = array('mark_notification', 'notification'); + extract($phpbb_dispatcher->trigger_event('core.index_mark_notification_after', compact($vars))); + if ($request->is_ajax()) { $json_response = new \phpbb\json_response(); |