[ticket/15978] Add core.index_mark_notification_after

PHPBB3-15978
This commit is contained in:
Jakub Senko 2019-02-25 14:19:08 +01:00
parent 33afd3f350
commit 44fb54b9b7
No known key found for this signature in database
GPG key ID: 6A7C328CD66EC21E

View file

@ -55,6 +55,17 @@ if (($mark_notification = $request->variable('mark_notification', 0)))
$notification->mark_read(); $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()) if ($request->is_ajax())
{ {
$json_response = new \phpbb\json_response(); $json_response = new \phpbb\json_response();