From 63d17e51813f1b80fd5c2ee33bcc67603c8da78b Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 3 Aug 2012 23:26:50 +0200 Subject: [PATCH] [feature/php-events] Fix naming and doc of core.viewforum_modify_topicrow PHPBB3-9550 --- phpBB/viewforum.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/phpBB/viewforum.php b/phpBB/viewforum.php index df5678def1..adf875114b 100644 --- a/phpBB/viewforum.php +++ b/phpBB/viewforum.php @@ -745,8 +745,16 @@ if (sizeof($topic_list)) 'S_TOPIC_TYPE_SWITCH' => ($s_type_switch == $s_type_switch_test) ? -1 : $s_type_switch_test, ); + /** + * Modify the topic data before it is assigned to the template + * + * @event core.viewforum_modify_topicrow + * @var array row Array with topic data + * @var array topic_row Template array with topic data + * @since 3.1-A1 + */ $vars = array('row', 'topic_row'); - extract($phpbb_dispatcher->trigger_event('core.viewforum_topicrow', compact($vars))); + extract($phpbb_dispatcher->trigger_event('core.viewforum_modify_topicrow', compact($vars))); $template->assign_block_vars('topicrow', $topic_row);