aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-06-09 16:09:23 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-09 16:09:23 +0200
commit41a5c3bf2b94d48a654edc7986116a845cb81970 (patch)
tree57b5de11932707f9a3288d7496a65940b33643ae /phpBB/includes/functions_display.php
parent223c8c4784a76599042e8f505ca8ca954a898167 (diff)
parentd5865e316c01cf6331a86b2d77dab5380c317cb8 (diff)
downloadforums-41a5c3bf2b94d48a654edc7986116a845cb81970.tar
forums-41a5c3bf2b94d48a654edc7986116a845cb81970.tar.gz
forums-41a5c3bf2b94d48a654edc7986116a845cb81970.tar.bz2
forums-41a5c3bf2b94d48a654edc7986116a845cb81970.tar.xz
forums-41a5c3bf2b94d48a654edc7986116a845cb81970.zip
Merge pull request #2554 from rxu/ticket/12669
[ticket/12669] Add core event to the function display_forums() * rxu/ticket/12669: [ticket/12669] Add core event to the function display_forums()
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r--phpBB/includes/functions_display.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 03996f9fc2..d9b8d8fd62 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -589,6 +589,28 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
);
}
+ /**
+ * Modify and/or assign additional template data for the forum
+ * after forumrow loop has been assigned. This can be used
+ * to create additional forumrow subloops in extensions.
+ *
+ * This event is triggered once per forum
+ *
+ * @event core.display_forums_add_template_data
+ * @var array forum_row Template data of the forum
+ * @var array row The data of the forum
+ * @var array subforums_list The data of subforums
+ * @var bool catless The flag indicating whether a forum has a parent category
+ * @since 3.1.0-b5
+ */
+ $vars = array(
+ 'forum_row',
+ 'row',
+ 'subforums_list',
+ 'catless',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.display_forums_add_template_data', compact($vars)));
+
$last_catless = $catless;
}