Merge pull request #6756 from kaileymsnay/ticket/17446

[ticket/17446] Add acp_account_activation_edit_add event
This commit is contained in:
Marc Alexander 2024-12-08 13:02:37 +01:00 committed by GitHub
commit 1255febe6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -921,7 +921,7 @@ class acp_board
*/ */
function select_acc_activation($selected_value, $value) function select_acc_activation($selected_value, $value)
{ {
global $user, $config; global $user, $config, $phpbb_dispatcher;
$act_ary = array( $act_ary = array(
'ACC_DISABLE' => array(true, USER_ACTIVATION_DISABLE), 'ACC_DISABLE' => array(true, USER_ACTIVATION_DISABLE),
@ -931,6 +931,18 @@ class acp_board
); );
$act_options = ''; $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 string act_options Options available 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) foreach ($act_ary as $key => $data)
{ {
list($available, $value) = $data; list($available, $value) = $data;