aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/ucp_pm_compose.php
diff options
context:
space:
mode:
authorWesley Fok <wesley.fok@yp.ca>2016-08-03 13:20:42 -0400
committerWesley Fok <wesley.fok@yp.ca>2016-08-03 13:20:42 -0400
commitba13832085bf05eb5ab19aeb9681b16c7a119df9 (patch)
tree7fb014aeb08e614fe060dfeede0ea05885ff4d7d /phpBB/includes/ucp/ucp_pm_compose.php
parent2081a7809540db661193be376c1220a2c21acff4 (diff)
parentf68820762b2d78bc26c59724a3dd98091bb3379b (diff)
downloadforums-ba13832085bf05eb5ab19aeb9681b16c7a119df9.tar
forums-ba13832085bf05eb5ab19aeb9681b16c7a119df9.tar.gz
forums-ba13832085bf05eb5ab19aeb9681b16c7a119df9.tar.bz2
forums-ba13832085bf05eb5ab19aeb9681b16c7a119df9.tar.xz
forums-ba13832085bf05eb5ab19aeb9681b16c7a119df9.zip
Merge remote-tracking branch 'upstream/3.1.x' into ticket/14638-3.1.x
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm_compose.php')
-rw-r--r--phpBB/includes/ucp/ucp_pm_compose.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php
index aae80b0c06..d365e8b489 100644
--- a/phpBB/includes/ucp/ucp_pm_compose.php
+++ b/phpBB/includes/ucp/ucp_pm_compose.php
@@ -751,6 +751,34 @@ function compose_pm($id, $mode, $action, $user_folders = array())
$enable_urls = (isset($_POST['disable_magic_url'])) ? 0 : 1;
$enable_sig = (!$config['allow_sig'] ||!$config['allow_sig_pm']) ? false : ((isset($_POST['attach_sig'])) ? true : false);
+ /**
+ * Modify private message
+ *
+ * @event core.ucp_pm_compose_modify_parse_before
+ * @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.1.10-RC1
+ */
+ $vars = array(
+ '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_before', compact($vars)));
+
if ($submit)
{
$status_switch = (($enable_bbcode+1) << 8) + (($enable_smilies+1) << 4) + (($enable_urls+1) << 2) + (($enable_sig+1) << 1);