mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[feature/events] Adding ledge group_set_user_default
Used by phpBB Gallery PHPBB3-9550
This commit is contained in:
parent
d4ace75370
commit
4d87b2254c
1 changed files with 6 additions and 1 deletions
|
@ -3376,7 +3376,7 @@ function group_validate_groupname($group_id, $group_name)
|
|||
*/
|
||||
function group_set_user_default($group_id, $user_id_ary, $group_attributes = false, $update_listing = false)
|
||||
{
|
||||
global $cache, $db;
|
||||
global $cache, $db, $phpbb_dispatcher;
|
||||
|
||||
if (empty($user_id_ary))
|
||||
{
|
||||
|
@ -3472,6 +3472,11 @@ function group_set_user_default($group_id, $user_id_ary, $group_attributes = fal
|
|||
}
|
||||
}
|
||||
|
||||
$vars = array('group_id', 'user_id_ary', 'group_attributes', 'update_listing', 'sql_ary');
|
||||
$event = new phpbb_event_data(compact($vars));
|
||||
$phpbb_dispatcher->dispatch('core.group_set_user_default', $event);
|
||||
extract($event->get_data_filtered($vars));
|
||||
|
||||
if ($update_listing)
|
||||
{
|
||||
group_update_listings($group_id);
|
||||
|
|
Loading…
Add table
Reference in a new issue