aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2017-01-23 14:14:36 +0100
committerJakub Senko <jakubsenko@gmail.com>2017-01-23 14:14:36 +0100
commit1d38abdd7e4d599d793fb1e3c163db461fb43348 (patch)
treea0232f025a5a05ef75a2113621923104559a5b53 /phpBB
parent2d742beb9245fdc215b9d53b846b15d608bd99e4 (diff)
downloadforums-1d38abdd7e4d599d793fb1e3c163db461fb43348.tar
forums-1d38abdd7e4d599d793fb1e3c163db461fb43348.tar.gz
forums-1d38abdd7e4d599d793fb1e3c163db461fb43348.tar.bz2
forums-1d38abdd7e4d599d793fb1e3c163db461fb43348.tar.xz
forums-1d38abdd7e4d599d793fb1e3c163db461fb43348.zip
[ticket/13605] Add core.ucp_pm_compose_predefined_message event
PHPBB3-13605
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/ucp/ucp_pm_compose.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php
index d365e8b489..4906eec1bb 100644
--- a/phpBB/includes/ucp/ucp_pm_compose.php
+++ b/phpBB/includes/ucp/ucp_pm_compose.php
@@ -450,6 +450,17 @@ function compose_pm($id, $mode, $action, $user_folders = array())
$message_attachment = 0;
$message_text = $message_subject = '';
+ /**
+ * Predefine message text and subject
+ *
+ * @event core.ucp_pm_compose_predefined_message
+ * @var string message_text Message text
+ * @var string message_subject Messate subject
+ * @since 3.1.11-RC1
+ */
+ $vars = array('message_text', 'message_subject');
+ extract($phpbb_dispatcher->trigger_event('core.ucp_pm_compose_predefined_message', compact($vars)));
+
if ($to_user_id && $to_user_id != ANONYMOUS && $action == 'post')
{
$address_list['u'][$to_user_id] = 'to';