diff options
author | kinerity <kinerity@yahoo.com> | 2018-09-22 21:16:53 -0400 |
---|---|---|
committer | kinerity <kinerity@yahoo.com> | 2018-09-22 21:28:02 -0400 |
commit | 78732fd7c25513a30d460710a3a5919aef75bfdf (patch) | |
tree | 9ae23e46f6d1efe332ada6fba85eee9eea4f2353 /phpBB/includes/ucp/ucp_pm_compose.php | |
parent | 2769ab701a9a1a537454a7490a4aa233b76c70b8 (diff) | |
download | forums-78732fd7c25513a30d460710a3a5919aef75bfdf.tar forums-78732fd7c25513a30d460710a3a5919aef75bfdf.tar.gz forums-78732fd7c25513a30d460710a3a5919aef75bfdf.tar.bz2 forums-78732fd7c25513a30d460710a3a5919aef75bfdf.tar.xz forums-78732fd7c25513a30d460710a3a5919aef75bfdf.zip |
[ticket/15803] Add events on ucp_pm_compose for additional message list actions
Event added for the handle_message_list_actions() function in ucp_pm_compose
so that extensions can perform additional actions.
PHPBB3-15803
Diffstat (limited to 'phpBB/includes/ucp/ucp_pm_compose.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_pm_compose.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php index f35812b90a..bb3eed5596 100644 --- a/phpBB/includes/ucp/ucp_pm_compose.php +++ b/phpBB/includes/ucp/ucp_pm_compose.php @@ -1437,6 +1437,21 @@ function handle_message_list_actions(&$address_list, &$error, $remove_u, $remove $error[] = $user->lang['PM_USERS_REMOVED_NO_PERMISSION']; } } + + /** + * Event for additional message list actions + * + * @event core.message_list_actions + * @var array address_list The assoc array with the recipient user/group ids + * @var array error The array containing error data + * @var object remove_u The variable for removing a user + * @var object remove_g The variable for removing a group + * @var object add_to The variable for adding a user to the [TO] field + * @var object add_bcc The variable for adding a user to the [BCC] field + * @since 3.1.7-RC1 + */ + $vars = array('address_list', 'error', 'remove_u', 'remove_g', 'add_to', 'add_bcc'); + extract($phpbb_dispatcher->trigger_event('core.message_list_actions', compact($vars))); } /** |