From 43ce44cb3bbc30dbc4588e7db39cb5bae734b55d Mon Sep 17 00:00:00 2001 From: kasimi Date: Thu, 16 Apr 2020 20:23:16 +0200 Subject: [PATCH] [ticket/16443] Add event core.ucp_pm_compose_modify_parse_after PHPBB3-16443 --- phpBB/includes/ucp/ucp_pm_compose.php | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index 9dbc00b680..42821b7b93 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -858,6 +858,35 @@ function compose_pm($id, $mode, $action, $user_folders = array()) } } + /** + * Modify private message + * + * @event core.ucp_pm_compose_modify_parse_after + * @var bool enable_bbcode Whether or not bbcode is enabled + * @var bool enable_smilies Whether or not smilies are enabled + * @var bool enable_urls Whether or not urls are enabled + * @var bool enable_sig Whether or not signature is enabled + * @var string subject PM subject text + * @var object message_parser The message parser object + * @var bool submit Whether or not the form has been sumitted + * @var bool preview Whether or not the signature is being previewed + * @var array error Any error strings + * @since 3.2.10-RC1 + * @since 3.3.1-RC1 + */ + $vars = [ + 'enable_bbcode', + 'enable_smilies', + 'enable_urls', + 'enable_sig', + 'subject', + 'message_parser', + 'submit', + 'preview', + 'error', + ]; + extract($phpbb_dispatcher->trigger_event('core.ucp_pm_compose_modify_parse_after', compact($vars))); + // Store message, sync counters if (!count($error) && $submit) {