mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12060] Add num_predefined_bbcodes to display_custom_bbcodes_modify_sql
event PHPBB3-12060
This commit is contained in:
parent
aa0c463d0f
commit
a24d2058cd
1 changed files with 4 additions and 2 deletions
|
@ -939,10 +939,12 @@ function display_custom_bbcodes()
|
||||||
* Event to modify the SQL query before custom bbcode data is queried
|
* Event to modify the SQL query before custom bbcode data is queried
|
||||||
*
|
*
|
||||||
* @event core.display_custom_bbcodes_modify_sql
|
* @event core.display_custom_bbcodes_modify_sql
|
||||||
* @var array sql_ary The SQL array to get the bbcode data
|
* @var array sql_ary The SQL array to get the bbcode data
|
||||||
|
* @var int num_predefined_bbcodes The number of predefined core bbcodes
|
||||||
|
* (multiplied by factor of 2)
|
||||||
* @since 3.1.0-a3
|
* @since 3.1.0-a3
|
||||||
*/
|
*/
|
||||||
$vars = array('sql_ary');
|
$vars = array('sql_ary', 'num_predefined_bbcodes');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.display_custom_bbcodes_modify_sql', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.display_custom_bbcodes_modify_sql', compact($vars)));
|
||||||
|
|
||||||
$result = $db->sql_query($db->sql_build_query('SELECT', $sql_ary));
|
$result = $db->sql_query($db->sql_build_query('SELECT', $sql_ary));
|
||||||
|
|
Loading…
Add table
Reference in a new issue