mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 03:48:53 +00:00
[feature/php-events] Add core.acp_users_overview_modify_data
This event was split from core.acp_users_display_overview to make it work as expected. PHPBB3-9550
This commit is contained in:
parent
5db76ee8b0
commit
be61bcb7b5
1 changed files with 12 additions and 0 deletions
|
@ -856,6 +856,18 @@ class acp_users
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Modify user data before we update it
|
||||||
|
*
|
||||||
|
* @event core.acp_users_overview_modify_data
|
||||||
|
* @var array user_row Current user data
|
||||||
|
* @var array data Submitted user data
|
||||||
|
* @var array sql_ary User data we udpate
|
||||||
|
* @since 3.1-A1
|
||||||
|
*/
|
||||||
|
$vars = array('user_row', 'data', 'sql_ary');
|
||||||
|
extract($phpbb_dispatcher->trigger_event('core.acp_users_overview_modify_data', compact($vars)));
|
||||||
|
|
||||||
if ($update_username !== false)
|
if ($update_username !== false)
|
||||||
{
|
{
|
||||||
$sql_ary['username'] = $update_username;
|
$sql_ary['username'] = $update_username;
|
||||||
|
|
Loading…
Add table
Reference in a new issue