1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-19 23:20:22 +01:00

[ticket/13605] Add core.ucp_pm_compose_predefined_message event

PHPBB3-13605
This commit is contained in:
Jakub Senko 2017-01-23 14:14:36 +01:00
parent 2d742beb92
commit 1d38abdd7e
No known key found for this signature in database
GPG Key ID: 6A7C328CD66EC21E

View File

@ -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';