aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_display.php
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2015-02-27 12:21:46 +0100
committerMarc Alexander <admin@m-a-styles.de>2015-02-27 12:21:46 +0100
commitf526e81ddff6dbf3c3fd2ebeda9928c553a64409 (patch)
tree64d588e263736dffb2d63e930fc9065b89805c5a /phpBB/includes/functions_display.php
parenta11181b5dd466fa67b8dba3714628fc5b10f5f9c (diff)
parente15b9dc7828de8644775709155c157a71bddb832 (diff)
downloadforums-f526e81ddff6dbf3c3fd2ebeda9928c553a64409.tar
forums-f526e81ddff6dbf3c3fd2ebeda9928c553a64409.tar.gz
forums-f526e81ddff6dbf3c3fd2ebeda9928c553a64409.tar.bz2
forums-f526e81ddff6dbf3c3fd2ebeda9928c553a64409.tar.xz
forums-f526e81ddff6dbf3c3fd2ebeda9928c553a64409.zip
Merge branch '3.1.x'
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 1d208a272b..a6c9c529d6 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -376,6 +376,28 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
get_moderators($forum_moderators, $forum_ids_moderator);
}
+ /**
+ * Event to perform additional actions before the forum list is being generated
+ *
+ * @event core.display_forums_before
+ * @var array active_forum_ary Array with forum data to display active topics
+ * @var bool display_moderators Flag indicating if we display forum moderators
+ * @var array forum_moderators Array with forum moderators list
+ * @var array forum_rows Data array of all forums we display
+ * @var bool return_moderators Flag indicating if moderators list should be returned
+ * @var array root_data Array with the root forum data
+ * @since 3.1.4-RC1
+ */
+ $vars = array(
+ 'active_forum_ary',
+ 'display_moderators',
+ 'forum_moderators',
+ 'forum_rows',
+ 'return_moderators',
+ 'root_data',
+ );
+ extract($phpbb_dispatcher->trigger_event('core.display_forums_before', compact($vars)));
+
// Used to tell whatever we have to create a dummy category or not.
$last_catless = true;
foreach ($forum_rows as $row)