aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_bbcodes.php
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2013-12-04 16:42:55 -0800
committerMatt Friedman <maf675@gmail.com>2013-12-04 16:42:55 -0800
commit2e33095177b4ce940844092e2ea2bd73ed1beaa1 (patch)
treedde2f8d29d9b9f2bf722401567ab04d9cec9e627 /phpBB/includes/acp/acp_bbcodes.php
parent79b8ecad4ddf1b023b9100afa623e8c0f8981e79 (diff)
downloadforums-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.php19
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 . '&amp;action=edit&amp;bbcode=' . $row['bbcode_id'],
- 'U_DELETE' => $this->u_action . '&amp;action=delete&amp;bbcode=' . $row['bbcode_id'])
+ 'U_DELETE' => $this->u_action . '&amp;action=delete&amp;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);
}