diff options
author | brunoais <brunoaiss@gmail.com> | 2014-08-07 19:35:32 +0100 |
---|---|---|
committer | brunoais <brunoaiss@gmail.com> | 2014-08-08 16:20:51 +0100 |
commit | 6fafa40d9393af13b594908bb631c4c8e7bdce8d (patch) | |
tree | fff0a01fa3df723fd688d09d33b4c10e25b0f940 | |
parent | 8d8d54aac7d3f75e9b7d25f23c8bbe50de5220a3 (diff) | |
download | forums-6fafa40d9393af13b594908bb631c4c8e7bdce8d.tar forums-6fafa40d9393af13b594908bb631c4c8e7bdce8d.tar.gz forums-6fafa40d9393af13b594908bb631c4c8e7bdce8d.tar.bz2 forums-6fafa40d9393af13b594908bb631c4c8e7bdce8d.tar.xz forums-6fafa40d9393af13b594908bb631c4c8e7bdce8d.zip |
[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
-rw-r--r-- | phpBB/includes/ucp/ucp_pm_compose.php | 16 |
1 files changed, 16 insertions, 0 deletions
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']) { |