aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2015-01-03 03:20:35 +0700
committerrxu <rxu@mail.ru>2015-01-03 20:12:47 +0700
commit970ed40b09a17bbeaaa778ec6c1248a6d8da279c (patch)
tree0e96054237d739501f10b3e57f73faeb1c74228a /phpBB/viewforum.php
parenta92589436a60262f1ba7960cd6b5af63a158e53b (diff)
downloadforums-970ed40b09a17bbeaaa778ec6c1248a6d8da279c.tar
forums-970ed40b09a17bbeaaa778ec6c1248a6d8da279c.tar.gz
forums-970ed40b09a17bbeaaa778ec6c1248a6d8da279c.tar.bz2
forums-970ed40b09a17bbeaaa778ec6c1248a6d8da279c.tar.xz
forums-970ed40b09a17bbeaaa778ec6c1248a6d8da279c.zip
[ticket/13449] Add viewforum event after the topic's been assigned to template
PHPBB3-13449
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index ce079cb262..97a979ed13 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -887,6 +887,28 @@ if (sizeof($topic_list))
$s_type_switch = ($row['topic_type'] == POST_ANNOUNCE || $row['topic_type'] == POST_GLOBAL) ? 1 : 0;
+ /**
+ * Event after the topic data has been assigned to the template
+ *
+ * @event core.viewforum_topic_row_after
+ * @var array row Array with the topic data
+ * @var array rowset Array with topics data (in topic_id => topic_data format)
+ * @var bool s_type_switch Flag indicating if the topic type is [global] announcement
+ * @var int topic_id The topic ID
+ * @var array topic_list Array with current viewforum page topic ids
+ * @var array topic_row Template array with topic data
+ * @since 3.1.3-RC1
+ */
+ $vars = array(
+ 'row',
+ 'rowset',
+ 's_type_switch',
+ 'topic_id',
+ 'topic_list',
+ 'topic_row',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.viewforum_topic_row_after', compact($vars)));
+
if ($unread_topic)
{
$mark_forum_read = false;