Location: includes/acp_users.php
Parameters: 'id', 'mode', 'username', 'user_id', 'trigger_override'
Explanation: To be able to add a new user in user management. About line 99
Code: Select all
// A listener can set this variable to `true` when it overrides this function
$trigger_override = false;
/**
* Run Add user
*
* @event core.acp_user_add
* @var int id Module id
* @var string mode Module mode
* @var string username username
* @var int user_id user_id
* @var bool trigger_override Shall we return to normal operations
* @since 3.1.0-RC4
*/
$vars = array('id', 'mode', 'username', 'user_id', 'trigger_override');
extract($phpbb_dispatcher->trigger_event('core.acp_user_add', compact($vars)));
if (!$trigger_override)
{
trigger_error($user->lang['NO_USER'] . adm_back_link($this->u_action), E_USER_WARNING);
}
Code: Select all
include_once($phpbb_root_path . 'includes/functions_user.' . $phpEx);
PR: https://github.com/phpbb/phpbb/pull/2924