aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-06-23 19:46:59 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-06-23 19:46:59 +0200
commit48bd10902b9e56aec2b215576512cb95a737bbfa (patch)
treef54fd6c9d4f729c667fd76d12ec0348ddcaf15c9
parent3a502143c7e1301b2575a1a171d6d6cdf9f5bf15 (diff)
parentc740772d93ad3ab3e84b285a20f11a0e92743602 (diff)
downloadforums-48bd10902b9e56aec2b215576512cb95a737bbfa.tar
forums-48bd10902b9e56aec2b215576512cb95a737bbfa.tar.gz
forums-48bd10902b9e56aec2b215576512cb95a737bbfa.tar.bz2
forums-48bd10902b9e56aec2b215576512cb95a737bbfa.tar.xz
forums-48bd10902b9e56aec2b215576512cb95a737bbfa.zip
Merge branch 'develop-ascraeus' into develop
* develop-ascraeus: [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
-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'];
}