diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2012-07-30 15:47:42 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2012-08-01 10:18:56 +0200 |
commit | 8b7e3739a04bd3ea707493894fa2ebf8dc81410e (patch) | |
tree | 130732701d96d2191eb20de025125a9a3a1b1ac3 /phpBB/includes/functions_display.php | |
parent | d4f9442e8749152d08ff50ca678b105d0ed2b703 (diff) | |
download | forums-8b7e3739a04bd3ea707493894fa2ebf8dc81410e.tar forums-8b7e3739a04bd3ea707493894fa2ebf8dc81410e.tar.gz forums-8b7e3739a04bd3ea707493894fa2ebf8dc81410e.tar.bz2 forums-8b7e3739a04bd3ea707493894fa2ebf8dc81410e.tar.xz forums-8b7e3739a04bd3ea707493894fa2ebf8dc81410e.zip |
[feature/php-events] Fix docs and naming of display_forums_modify_template_vars
PHPBB3-9550
Diffstat (limited to 'phpBB/includes/functions_display.php')
-rw-r--r-- | phpBB/includes/functions_display.php | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 3f37f227f6..448c261580 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -522,8 +522,18 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod 'U_LAST_POST' => $last_post_url, ); - $vars = array('row', 'forum_row'); - extract($phpbb_dispatcher->trigger_event('core.display_forums_assign_block_vars', compact($vars))); + /** + * Modify the template data block of the forum + * + * This event is triggered once per forum + * + * @event core.display_forums_modify_template_vars + * @var array forum_row Template data of the forum + * @var array row The data of the forum + * @since 3.1-A1 + */ + $vars = array('forum_row', 'row'); + extract($phpbb_dispatcher->trigger_event('core.display_forums_modify_template_vars', compact($vars))); $template->assign_block_vars('forumrow', $forum_row); |