diff options
author | Matt Friedman <maf675@gmail.com> | 2013-12-04 16:42:55 -0800 |
---|---|---|
committer | Matt Friedman <maf675@gmail.com> | 2013-12-04 16:42:55 -0800 |
commit | 2e33095177b4ce940844092e2ea2bd73ed1beaa1 (patch) | |
tree | dde2f8d29d9b9f2bf722401567ab04d9cec9e627 /phpBB/includes/acp/acp_bbcodes.php | |
parent | 79b8ecad4ddf1b023b9100afa623e8c0f8981e79 (diff) | |
download | forums-2e33095177b4ce940844092e2ea2bd73ed1beaa1.tar forums-2e33095177b4ce940844092e2ea2bd73ed1beaa1.tar.gz forums-2e33095177b4ce940844092e2ea2bd73ed1beaa1.tar.bz2 forums-2e33095177b4ce940844092e2ea2bd73ed1beaa1.tar.xz forums-2e33095177b4ce940844092e2ea2bd73ed1beaa1.zip |
[ticket/12060] Add acp event core.acp_bbcodes_display_bbcodes
Modify display of bbcodes in the form
PHPBB3-12060
Diffstat (limited to 'phpBB/includes/acp/acp_bbcodes.php')
-rw-r--r-- | phpBB/includes/acp/acp_bbcodes.php | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php index 2a71fbf779..c3e28c5b03 100644 --- a/phpBB/includes/acp/acp_bbcodes.php +++ b/phpBB/includes/acp/acp_bbcodes.php @@ -363,11 +363,26 @@ class acp_bbcodes while ($row = $db->sql_fetchrow($result)) { - $template->assign_block_vars('bbcodes', array( + $bbcodes_array = array( 'BBCODE_TAG' => $row['bbcode_tag'], 'U_EDIT' => $this->u_action . '&action=edit&bbcode=' . $row['bbcode_id'], - 'U_DELETE' => $this->u_action . '&action=delete&bbcode=' . $row['bbcode_id']) + 'U_DELETE' => $this->u_action . '&action=delete&bbcode=' . $row['bbcode_id'], ); + + /** + * Modify display of bbcodes in the form + * + * @event core.acp_bbcodes_display_bbcodes + * @var array row Array with current bbcode data + * @var array bbcodes_array Array of bbcodes template data + * @var object this_u_action $this->u_action object + * @since 3.1-A3 + */ + $vars = array('bbcodes_array', 'row', 'this_u_action'); + extract($phpbb_dispatcher->trigger_event('core.acp_bbcodes_display_bbcodes', compact($vars))); + + $template->assign_block_vars('bbcodes', $bbcodes_array); + } $db->sql_freeresult($result); } |