mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[ticket/12930] core.ucp_pm_compose_compose_pm_quotepost_query_after
Adding the core.ucp_pm_compose_compose_pm_quotepost_query_after event to ucp backend. PHPBB3-12930
This commit is contained in:
parent
8d8d54aac7
commit
6fafa40d93
1 changed files with 16 additions and 0 deletions
|
@ -267,6 +267,22 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
|||
trigger_error('NOT_AUTHORISED');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the result of querying for the post to be quoted in the pm message
|
||||
*
|
||||
* @event core.ucp_pm_compose_quotepost_query_after
|
||||
* @var array sql The original SQL used in the query
|
||||
* @var array post Associative array with the result of the quotepost related SQL query
|
||||
* @var array msg_id The post_id that was searched to get the message for quoting
|
||||
* @since 3.1.0-RC3
|
||||
*/
|
||||
$vars = array(
|
||||
'sql',
|
||||
'post',
|
||||
'msg_id',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.ucp_pm_compose_quotepost_query_after', compact($vars)));
|
||||
|
||||
// Passworded forum?
|
||||
if ($post['forum_id'])
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue