From 67de1195660c92299514fb843c2f443dcc83650f Mon Sep 17 00:00:00 2001 From: brunoais Date: Sun, 10 Aug 2014 18:59:57 +0100 Subject: [PATCH] [ticket/12930] Adding more variables to the event More variables, according to comments, were added to the event. PHPBB3-12930 --- phpBB/includes/ucp/ucp_pm_compose.php | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index b3984e6e8c..ab5de019e3 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -271,15 +271,35 @@ function compose_pm($id, $mode, $action, $user_folders = array()) * 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 + * @var string 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 + * @var array forum_list List of forums that contain the posts + * @var int visibility_const Integer with one of the possible ITEM_* constant values + * @var int topic_id topic_id in the page request + * @var int to_user_id The id of whom the message is to + * @var int to_group_id The id of the group whom the message is to + * @var bool submit Whether the user is sending the PM or not + * @var bool preview Whether the user is previewing the PM or not + * @var bool action One of: post, reply, quote, forward, quotepost, edit, delete, smilies + * @var bool delete If deleting message + * @var int reply_to_all Value of reply_to_all request variable. * @since 3.1.0-RC4 */ $vars = array( 'sql', 'post', 'msg_id', + 'forum_list', + 'visibility_const', + 'topic_id', + 'to_user_id', + 'to_group_id', + 'submit', + 'preview', + 'action', + 'delete', + 'reply_to_all', ); extract($phpbb_dispatcher->trigger_event('core.ucp_pm_compose_quotepost_query_after', compact($vars)));