mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
[feature/php-events] Fix naming and doc of core.mcp_view_forum_modify_topicrow
PHPBB3-9550
This commit is contained in:
parent
0d182d9e93
commit
a9d4ed0cfc
1 changed files with 10 additions and 2 deletions
|
@ -288,8 +288,16 @@ function mcp_forum_view($id, $mode, $action, $forum_info)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
$vars = array('topic_row', 'row');
|
/**
|
||||||
extract($phpbb_dispatcher->trigger_event('core.mcp_forum_topicrow', compact($vars)));
|
* Modify the topic data before it is assigned to the template in MCP
|
||||||
|
*
|
||||||
|
* @event core.mcp_view_forum_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.mcp_view_forum_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