mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[feature/php-events] Fix docs and naming of core.display_forums_modify_sql
PHPBB3-9550
This commit is contained in:
parent
a05cd6d837
commit
099aaab720
1 changed files with 8 additions and 1 deletions
|
@ -119,8 +119,15 @@ function display_forums($root_data = '', $display_moderators = true, $return_mod
|
||||||
'ORDER_BY' => 'f.left_id',
|
'ORDER_BY' => 'f.left_id',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Event to modify the SQL query before the forum data is queried
|
||||||
|
*
|
||||||
|
* @event core.display_forums_modify_sql
|
||||||
|
* @var array sql_ary The SQL array to get the data of the forums
|
||||||
|
* @since 3.1-A1
|
||||||
|
*/
|
||||||
$vars = array('sql_ary');
|
$vars = array('sql_ary');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.display_forums_build_query', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.display_forums_modify_sql', compact($vars)));
|
||||||
|
|
||||||
$sql = $db->sql_build_query('SELECT', $sql_ary);
|
$sql = $db->sql_build_query('SELECT', $sql_ary);
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
Loading…
Add table
Reference in a new issue