aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2018-10-13 15:49:35 -0700
committerMarc Alexander <admin@m-a-styles.de>2018-10-13 15:49:35 -0700
commite27da4a025ead2e47060eb5690d87dc8d2241df6 (patch)
treefc490d86251839a9820a3eadc23bfa80148ee34a /phpBB/includes
parent4cef4634fc1164f2f0430448a1892a7ec888adf2 (diff)
parent62c9996b2f5848ba9cc7b3211e62d6001e13d061 (diff)
downloadforums-e27da4a025ead2e47060eb5690d87dc8d2241df6.tar
forums-e27da4a025ead2e47060eb5690d87dc8d2241df6.tar.gz
forums-e27da4a025ead2e47060eb5690d87dc8d2241df6.tar.bz2
forums-e27da4a025ead2e47060eb5690d87dc8d2241df6.tar.xz
forums-e27da4a025ead2e47060eb5690d87dc8d2241df6.zip
Merge pull request #5368 from kinerity/ticket/15803
[ticket/15803] Add events on ucp_pm_compose for additional message list actions
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/ucp/ucp_pm_compose.php17
1 files changed, 16 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_pm_compose.php b/phpBB/includes/ucp/ucp_pm_compose.php
index 91cd7680ca..cc796d766b 100644
--- a/phpBB/includes/ucp/ucp_pm_compose.php
+++ b/phpBB/includes/ucp/ucp_pm_compose.php
@@ -1269,7 +1269,7 @@ function compose_pm($id, $mode, $action, $user_folders = array())
function handle_message_list_actions(&$address_list, &$error, $remove_u, $remove_g, $add_to, $add_bcc)
{
global $auth, $db, $user;
- global $request;
+ global $request, $phpbb_dispatcher;
// Delete User [TO/BCC]
if ($remove_u && $request->variable('remove_u', array(0 => '')))
@@ -1446,6 +1446,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 bool remove_u The variable for removing a user
+ * @var bool remove_g The variable for removing a group
+ * @var bool add_to The variable for adding a user to the [TO] field
+ * @var bool add_bcc The variable for adding a user to the [BCC] field
+ * @since 3.2.4-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)));
}
/**