mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 14:48:53 +00:00
[ticket/13637] Update event name and docblock
Update the event name to core.ucp_pm_compose_modify_data Change description of to_group_id and submit dockblock PHPBB3-13637
This commit is contained in:
parent
d28d90bd90
commit
b8c388f184
1 changed files with 4 additions and 4 deletions
|
@ -93,11 +93,11 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||||
/**
|
/**
|
||||||
* Modify the default vars before composing a PM
|
* Modify the default vars before composing a PM
|
||||||
*
|
*
|
||||||
* @event core.ucp_pm_compose_alter_vars
|
* @event core.ucp_pm_compose_modify_data
|
||||||
* @var int msg_id topic_id in the page request
|
* @var int msg_id topic_id in the page request
|
||||||
* @var int to_user_id The id of whom the message is to
|
* @var int to_user_id The id of whom the message is to
|
||||||
* @var int to_group_id The id of the group whom the message is to
|
* @var int to_group_id The id of the group the message is to
|
||||||
* @var bool submit Whether the user is sending the PM or not
|
* @var bool submit Whether the form has been submitted
|
||||||
* @var bool preview Whether the user is previewing the PM or not
|
* @var bool preview Whether the user is previewing the PM or not
|
||||||
* @var string action One of: post, reply, quote, forward, quotepost, edit, delete, smilies
|
* @var string action One of: post, reply, quote, forward, quotepost, edit, delete, smilies
|
||||||
* @var bool delete Whether the user is deleting the PM
|
* @var bool delete Whether the user is deleting the PM
|
||||||
|
@ -114,7 +114,7 @@ function compose_pm($id, $mode, $action, $user_folders = array())
|
||||||
'delete',
|
'delete',
|
||||||
'reply_to_all',
|
'reply_to_all',
|
||||||
);
|
);
|
||||||
extract($phpbb_dispatcher->trigger_event('core.ucp_pm_compose_alter_vars', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.ucp_pm_compose_modify_data', compact($vars)));
|
||||||
|
|
||||||
// Output PM_TO box if message composing
|
// Output PM_TO box if message composing
|
||||||
if ($action != 'edit')
|
if ($action != 'edit')
|
||||||
|
|
Loading…
Add table
Reference in a new issue