From 2cd574321fb4cfbdff58c71df5c70565c1c88e8c Mon Sep 17 00:00:00 2001 From: 3D-I Date: Wed, 20 Feb 2019 19:56:46 +0100 Subject: [PATCH] [ticket/15972] Add core.markread_after PHPBB3-15972 --- phpBB/includes/functions.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 99f65a0e92..7a42852094 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -952,6 +952,27 @@ function markread($mode, $forum_id = false, $topic_id = false, $post_time = 0, $ return; } + + /** + * This event is used for performing actions directly after forums, + * topics or posts have been marked as read. + * + * @event core.markread_after + * @var string mode Variable containing marking mode value + * @var mixed forum_id Variable containing forum id, or false + * @var mixed topic_id Variable containing topic id, or false + * @var int post_time Variable containing post time + * @var int user_id Variable containing the user id + * @since 3.2.6-RC1 + */ + $vars = array( + 'mode', + 'forum_id', + 'topic_id', + 'post_time', + 'user_id', + ); + extract($phpbb_dispatcher->trigger_event('core.markread_after', compact($vars))); } /**