From 65283a9ab86bc43e919b8f6c76546562b78aa0fc Mon Sep 17 00:00:00 2001 From: Kailey M Snay Date: Fri, 29 Nov 2024 23:31:34 -0500 Subject: [PATCH 1/2] [ticket/17446] Master: Add acp_account_activation_edit_add event PHPBB-17446 --- phpBB/includes/acp/acp_board.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php index 959388e075..4ab5e739bd 100644 --- a/phpBB/includes/acp/acp_board.php +++ b/phpBB/includes/acp/acp_board.php @@ -938,7 +938,7 @@ class acp_board */ function select_acc_activation($selected_value, $value) { - global $user, $config; + global $user, $config, $phpbb_dispatcher; $act_ary = [ 'ACC_DISABLE' => [true, USER_ACTIVATION_DISABLE], @@ -948,6 +948,18 @@ class acp_board ]; $act_options = []; + + /** + * Event to add and/or modify account activation configurations + * + * @event core.acp_account_activation_edit_add + * @var array act_ary Array of account activation methods + * @var array act_options Options avialbe in the activation method + * @since 3.3.15-RC1 + */ + $vars = ['act_ary', 'act_options']; + extract($phpbb_dispatcher->trigger_event('core.acp_account_activation_edit_add', compact($vars))); + foreach ($act_ary as $key => $data) { list($available, $value) = $data; From 8b274d4006ee77e812b17d18024b7cbd3a9520ab Mon Sep 17 00:00:00 2001 From: Kailey M Snay Date: Fri, 29 Nov 2024 23:55:34 -0500 Subject: [PATCH 2/2] [ticket/17446] Master: Fix typo PHPBB-17446 --- phpBB/includes/acp/acp_board.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/acp/acp_board.php b/phpBB/includes/acp/acp_board.php index 4ab5e739bd..9359a57a1c 100644 --- a/phpBB/includes/acp/acp_board.php +++ b/phpBB/includes/acp/acp_board.php @@ -954,7 +954,7 @@ class acp_board * * @event core.acp_account_activation_edit_add * @var array act_ary Array of account activation methods - * @var array act_options Options avialbe in the activation method + * @var array act_options Options available in the activation method * @since 3.3.15-RC1 */ $vars = ['act_ary', 'act_options'];