mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12690] Add other info to core.submit_pm_after
Added $mode Added $subject Added $data Added $pm_data PHPBB3-12690
This commit is contained in:
parent
e05df3bf3d
commit
9c6f74daff
1 changed files with 5 additions and 1 deletions
6
phpBB/includes/functions_privmsgs.php
Normal file → Executable file
6
phpBB/includes/functions_privmsgs.php
Normal file → Executable file
|
@ -1911,10 +1911,14 @@ function submit_pm($mode, $subject, &$data, $put_in_outbox = true)
|
||||||
*
|
*
|
||||||
* @event core.submit_pm_after
|
* @event core.submit_pm_after
|
||||||
* @var int msg_id message ID
|
* @var int msg_id message ID
|
||||||
|
* @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
|
* @since 3.1.0-b5
|
||||||
*/
|
*/
|
||||||
$msg_id = $data['msg_id'];
|
$msg_id = $data['msg_id'];
|
||||||
$vars = array('msg_id');
|
$vars = array('msg_id', 'mode', 'subject', 'data', 'pm_data');
|
||||||
extract($phpbb_dispatcher->trigger_event('core.submit_pm_after', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.submit_pm_after', compact($vars)));
|
||||||
|
|
||||||
return $data['msg_id'];
|
return $data['msg_id'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue