mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[ticket/12060] Add event core.display_custom_bbcodes_modify_sql
Modify the SQL statement retrieving the custom bbcodes PHPBB3-12060
This commit is contained in:
parent
8f309a70db
commit
5195f9c299
1 changed files with 11 additions and 0 deletions
|
@ -932,6 +932,17 @@ function display_custom_bbcodes()
|
||||||
FROM ' . BBCODES_TABLE . '
|
FROM ' . BBCODES_TABLE . '
|
||||||
WHERE display_on_posting = 1
|
WHERE display_on_posting = 1
|
||||||
ORDER BY bbcode_tag';
|
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);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue