[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:
brunoais 2014-08-07 19:35:32 +01:00
parent 8d8d54aac7
commit 6fafa40d93

View file

@ -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'])
{