mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/php-events] Fix docs and naming of display_custom_bbcodes_modify_row
PHPBB3-9550
This commit is contained in:
parent
8b7e3739a0
commit
96f20160bc
1 changed files with 11 additions and 1 deletions
|
@ -912,8 +912,18 @@ function display_custom_bbcodes()
|
|||
'A_BBCODE_HELPLINE' => str_replace(array('&', '"', "'", '<', '>'), array('&', '"', "\'", '<', '>'), $row['bbcode_helpline']),
|
||||
);
|
||||
|
||||
/**
|
||||
* Modify the template data block of a bbcode
|
||||
*
|
||||
* This event is triggered once per bbcode
|
||||
*
|
||||
* @event core.display_custom_bbcodes_modify_row
|
||||
* @var array custom_tags Template data of the bbcode
|
||||
* @var array row The data of the bbcode
|
||||
* @since 3.1-A1
|
||||
*/
|
||||
$vars = array('custom_tags', 'row');
|
||||
extract($phpbb_dispatcher->trigger_event('core.display_custom_bbcodes_row', compact($vars)));
|
||||
extract($phpbb_dispatcher->trigger_event('core.display_custom_bbcodes_modify_row', compact($vars)));
|
||||
|
||||
$template->assign_block_vars('custom_tags', $custom_tags);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue