mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-03 21:15:42 +02:00
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
This commit is contained in:
commit
c740772d93
@ -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'];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user