aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Friedman <maf675@gmail.com>2013-12-04 16:44:21 -0800
committerMatt Friedman <maf675@gmail.com>2013-12-04 16:44:21 -0800
commit5195f9c2997e31ceddd60d20f08a23477d95db1e (patch)
tree50d9eea9e7d4518b9e15e527ea58b54e743c1ca9
parent8f309a70db9b4b0c9f59318cf198450c1ec17873 (diff)
downloadforums-5195f9c2997e31ceddd60d20f08a23477d95db1e.tar
forums-5195f9c2997e31ceddd60d20f08a23477d95db1e.tar.gz
forums-5195f9c2997e31ceddd60d20f08a23477d95db1e.tar.bz2
forums-5195f9c2997e31ceddd60d20f08a23477d95db1e.tar.xz
forums-5195f9c2997e31ceddd60d20f08a23477d95db1e.zip
[ticket/12060] Add event core.display_custom_bbcodes_modify_sql
Modify the SQL statement retrieving the custom bbcodes PHPBB3-12060
-rw-r--r--phpBB/includes/functions_display.php11
1 files changed, 11 insertions, 0 deletions
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;