From 5195f9c2997e31ceddd60d20f08a23477d95db1e Mon Sep 17 00:00:00 2001 From: Matt Friedman Date: Wed, 4 Dec 2013 16:44:21 -0800 Subject: [PATCH] [ticket/12060] Add event core.display_custom_bbcodes_modify_sql Modify the SQL statement retrieving the custom bbcodes PHPBB3-12060 --- phpBB/includes/functions_display.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/phpBB/includes/functions_display.php b/phpBB/includes/functions_display.php index 5592aa89ba..f2d76cfd73 100644 --- a/phpBB/includes/functions_display.php +++ b/phpBB/includes/functions_display.php @@ -932,6 +932,17 @@ function display_custom_bbcodes() FROM ' . BBCODES_TABLE . ' WHERE display_on_posting = 1 ORDER BY bbcode_tag'; + + /** + * Modify the SQL statement retrieving the custom bbcodes + * + * @event core.display_custom_bbcodes_modify_sql + * @var string sql SQL SELECT statement + * @since 3.1-A3 + */ + $vars = array('sql'); + extract($phpbb_dispatcher->trigger_event('core.display_custom_bbcodes_modify_sql', compact($vars))); + $result = $db->sql_query($sql); $i = 0;