aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-07-30 16:00:19 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-08-01 10:18:56 +0200
commit96f20160bcfa7a08870602b25fa528370f034128 (patch)
treee7b637f109ae675ae552af7c3fdc4fc1f1ceed0a
parent8b7e3739a04bd3ea707493894fa2ebf8dc81410e (diff)
downloadforums-96f20160bcfa7a08870602b25fa528370f034128.tar
forums-96f20160bcfa7a08870602b25fa528370f034128.tar.gz
forums-96f20160bcfa7a08870602b25fa528370f034128.tar.bz2
forums-96f20160bcfa7a08870602b25fa528370f034128.tar.xz
forums-96f20160bcfa7a08870602b25fa528370f034128.zip
[feature/php-events] Fix docs and naming of display_custom_bbcodes_modify_row
PHPBB3-9550
-rw-r--r--phpBB/includes/functions_display.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php
index 448c261580..807f5a2192 100644
--- a/phpBB/includes/functions_display.php
+++ b/phpBB/includes/functions_display.php
@@ -912,8 +912,18 @@ function display_custom_bbcodes()
'A_BBCODE_HELPLINE' => str_replace(array('&amp;', '&quot;', "'", '&lt;', '&gt;'), 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);