[feature/php-events] Fix naming and doc of core.viewforum_modify_topicrow

PHPBB3-9550
This commit is contained in:
Joas Schilling 2012-08-03 23:26:50 +02:00
parent fab13f7559
commit 63d17e5181

View file

@ -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);