From 6fafa40d9393af13b594908bb631c4c8e7bdce8d Mon Sep 17 00:00:00 2001 From: brunoais Date: Thu, 7 Aug 2014 19:35:32 +0100 Subject: [PATCH] [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 --- phpBB/includes/ucp/ucp_pm_compose.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index 01c2041f42..bc746662aa 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -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']) {