diff options
author | Marc Alexander <admin@m-a-styles.de> | 2019-03-31 11:45:18 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-03-31 11:45:18 +0200 |
commit | 433803287ad3eccece6fd5f358fa8dab10516bc6 (patch) | |
tree | b6660f7c5d4fec0bd35109cb550ca5d5df01bbab /phpBB | |
parent | b798ab6f42a44d49f8f0a3f03c1b75fb6aae4fe5 (diff) | |
parent | 44fb54b9b72eb1a01543e14615fdc8ec43e73a64 (diff) | |
download | forums-433803287ad3eccece6fd5f358fa8dab10516bc6.tar forums-433803287ad3eccece6fd5f358fa8dab10516bc6.tar.gz forums-433803287ad3eccece6fd5f358fa8dab10516bc6.tar.bz2 forums-433803287ad3eccece6fd5f358fa8dab10516bc6.tar.xz forums-433803287ad3eccece6fd5f358fa8dab10516bc6.zip |
Merge pull request #5541 from senky/ticket/15978
[ticket/15978] Add core.index_mark_notification_after
Diffstat (limited to 'phpBB')
-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(); |