aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_bbcodes.php
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2013-12-05 13:49:47 -0800
committerMatt Friedman <maf675@gmail.com>2013-12-05 13:49:47 -0800
commitd93200c973e35e3cc8417f8871b89f835e5395d7 (patch)
treeaf571686341d9d47f6b2bf98bbee0816ddf2e6dc /phpBB/includes/acp/acp_bbcodes.php
parentfba2c2c680adc87c5c3430438d96e390d4e8bfd1 (diff)
downloadforums-d93200c973e35e3cc8417f8871b89f835e5395d7.tar
forums-d93200c973e35e3cc8417f8871b89f835e5395d7.tar.gz
forums-d93200c973e35e3cc8417f8871b89f835e5395d7.tar.bz2
forums-d93200c973e35e3cc8417f8871b89f835e5395d7.tar.xz
forums-d93200c973e35e3cc8417f8871b89f835e5395d7.zip
[ticket/12060] Add bbcode tokens array to core.acp_bbcodes_edit_add
PHPBB3-12060
Diffstat (limited to 'phpBB/includes/acp/acp_bbcodes.php')
-rw-r--r--phpBB/includes/acp/acp_bbcodes.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/phpBB/includes/acp/acp_bbcodes.php b/phpBB/includes/acp/acp_bbcodes.php
index e4105f29bd..9b9d0a3e84 100644
--- a/phpBB/includes/acp/acp_bbcodes.php
+++ b/phpBB/includes/acp/acp_bbcodes.php
@@ -108,21 +108,23 @@ class acp_bbcodes
'DISPLAY_ON_POSTING' => $display_on_posting,
);
+ $bbcode_tokens = array('TEXT', 'SIMPLETEXT', 'INTTEXT', 'IDENTIFIER', 'NUMBER', 'EMAIL', 'URL', 'LOCAL_URL', 'RELATIVE_URL', 'COLOR');
+
/**
* Modify bbcode template before we display the add/edit form
*
* @event core.acp_bbcodes_edit_add
- * @var string action Type of the action: add|edit
- * @var array tpl_ary Array with bbcodes add/edit data
- * @var int bbcode_id The id of the bbcode (being edited)
+ * @var string action Type of the action: add|edit
+ * @var array tpl_ary Array with bbcodes add/edit data
+ * @var int bbcode_id The id of the bbcode (being edited)
+ * @var array bbcode_token Array of bbcode tokens
* @since 3.1-A3
*/
- $vars = array('action', 'tpl_ary', 'bbcode_id');
+ $vars = array('action', 'tpl_ary', 'bbcode_id', 'bbcode_tokens');
extract($phpbb_dispatcher->trigger_event('core.acp_bbcodes_edit_add', compact($vars)));
$template->assign_vars($tpl_ary);
- $bbcode_tokens = array('TEXT', 'SIMPLETEXT', 'INTTEXT', 'IDENTIFIER', 'NUMBER', 'EMAIL', 'URL', 'LOCAL_URL', 'RELATIVE_URL', 'COLOR');
foreach ($bbcode_tokens as $token)
{
$template->assign_block_vars('token', array(