mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge pull request #4364 from kinerity/ticket/14687
[ticket/14687] Modify viewforum_modify_topicrow event
This commit is contained in:
commit
d0a5f87a44
1 changed files with 7 additions and 3 deletions
|
@ -939,11 +939,15 @@ if (sizeof($topic_list))
|
||||||
* Modify the topic data before it is assigned to the template
|
* Modify the topic data before it is assigned to the template
|
||||||
*
|
*
|
||||||
* @event core.viewforum_modify_topicrow
|
* @event core.viewforum_modify_topicrow
|
||||||
* @var array row Array with topic data
|
* @var array row Array with topic data
|
||||||
* @var array topic_row Template array with topic data
|
* @var array topic_row Template array with topic data
|
||||||
|
* @var bool s_type_switch Flag indicating if the topic type is [global] announcement
|
||||||
|
* @var bool s_type_switch_test Flag indicating if the test topic type is [global] announcement
|
||||||
* @since 3.1.0-a1
|
* @since 3.1.0-a1
|
||||||
|
*
|
||||||
|
* @changed 3.1.10-RC1 Added s_type_switch, s_type_switch_test
|
||||||
*/
|
*/
|
||||||
$vars = array('row', 'topic_row');
|
$vars = array('row', 'topic_row', 's_type_switch', 's_type_switch_test');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.viewforum_modify_topicrow', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.viewforum_modify_topicrow', compact($vars)));
|
||||||
|
|
||||||
$template->assign_block_vars('topicrow', $topic_row);
|
$template->assign_block_vars('topicrow', $topic_row);
|
||||||
|
|
Loading…
Add table
Reference in a new issue