aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewforum.php
diff options
context:
space:
mode:
authorrxu <rxu@mail.ru>2017-08-16 21:57:11 +0700
committerrxu <rxu@mail.ru>2017-08-16 22:38:34 +0700
commit68c3a0307de19fdefd7ae716247fffea3ee30c0c (patch)
treeafd71fa73e5ca48d7655eac68cea6517bffc8712 /phpBB/viewforum.php
parent1e605efaf126f5474bb1be99e7fdaed834ebb2a0 (diff)
downloadforums-68c3a0307de19fdefd7ae716247fffea3ee30c0c.tar
forums-68c3a0307de19fdefd7ae716247fffea3ee30c0c.tar.gz
forums-68c3a0307de19fdefd7ae716247fffea3ee30c0c.tar.bz2
forums-68c3a0307de19fdefd7ae716247fffea3ee30c0c.tar.xz
forums-68c3a0307de19fdefd7ae716247fffea3ee30c0c.zip
[ticket/15324] Add more core and template events
PHPBB3-15324
Diffstat (limited to 'phpBB/viewforum.php')
-rw-r--r--phpBB/viewforum.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php
index dff965a1ee..9cc75988f7 100644
--- a/phpBB/viewforum.php
+++ b/phpBB/viewforum.php
@@ -993,6 +993,16 @@ if (sizeof($topic_list))
}
}
+/**
+* This event is to perform additional actions on viewforum page
+*
+* @event core.viewforum_generate_page_after
+* @var array forum_data Array with the forum data
+* @since 3.2.2-RC1
+*/
+$vars = array('forum_data');
+extract($phpbb_dispatcher->trigger_event('core.viewforum_generate_page_after', compact($vars)));
+
// This is rather a fudge but it's the best I can think of without requiring information
// on all topics (as we do in 2.0.x). It looks for unread or new topics, if it doesn't find
// any it updates the forum last read cookie. This requires that the user visit the forum