aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_privmsgs.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-06-23 19:46:50 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-23 19:46:50 +0200
commitc740772d93ad3ab3e84b285a20f11a0e92743602 (patch)
tree90ecaa83b2470662189b3f4500257c723c0bb880 /phpBB/includes/functions_privmsgs.php
parent08f244229c8ea159d1fdae72388cfdbd78cd6db9 (diff)
parent2ee8b738e529fe575556660d3515e536ec387451 (diff)
downloadforums-c740772d93ad3ab3e84b285a20f11a0e92743602.tar
forums-c740772d93ad3ab3e84b285a20f11a0e92743602.tar.gz
forums-c740772d93ad3ab3e84b285a20f11a0e92743602.tar.bz2
forums-c740772d93ad3ab3e84b285a20f11a0e92743602.tar.xz
forums-c740772d93ad3ab3e84b285a20f11a0e92743602.zip
Merge pull request #2574 from lucifer4o/ticket/12690
[ticket/12690] Add core.submit_pm_after event * lucifer4o/ticket/12690: [ticket/12690] Find a space [ticket/12690] Remove $msg_id and chmod [ticket/12690] Add other info to core.submit_pm_after [ticket/12690] Add core.submit_pm_after event
Diffstat (limited to 'phpBB/includes/functions_privmsgs.php')
-rw-r--r--phpBB/includes/functions_privmsgs.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/includes/functions_privmsgs.php b/phpBB/includes/functions_privmsgs.php
index f9e80d5df1..e60311f8ab 100644
--- a/phpBB/includes/functions_privmsgs.php
+++ b/phpBB/includes/functions_privmsgs.php
@@ -1918,6 +1918,19 @@ function submit_pm($mode, $subject, &$data, $put_in_outbox = true)
$phpbb_notifications->add_notifications('pm', $pm_data);
}
+ /**
+ * Get PM message ID after submission to DB
+ *
+ * @event core.submit_pm_after
+ * @var string mode PM Post mode - post|reply|quote|quotepost|forward|edit
+ * @var string subject Subject of the private message
+ * @var array data The whole row data of the PM.
+ * @var array pm_data The data sent to notification class
+ * @since 3.1.0-b5
+ */
+ $vars = array('mode', 'subject', 'data', 'pm_data');
+ extract($phpbb_dispatcher->trigger_event('core.submit_pm_after', compact($vars)));
+
return $data['msg_id'];
}