Collections functions
General functions
Render functions
Theme permission functions
Resource functions

reorder_usergroup_dash()

Parameters

ColumnTypeDefaultDescription
$usergroup

Location

include/dash_functions.php lines 799 to 809

Definition

 
function reorder_usergroup_dash($usergroup)
    {
    
$usergroup_tiles ps_query("SELECT usergroup_dash_tile.dash_tile FROM usergroup_dash_tile LEFT JOIN dash_tile ON usergroup_dash_tile.dash_tile = dash_tile.ref WHERE usergroup_dash_tile.usergroup = ? ORDER BY usergroup_dash_tile.default_order_by", ['i'$usergroup]);
    
$order_by        10 count($usergroup_tiles);

    for(
$i count($usergroup_tiles) - 1$i >= 0$i--)
        {
        
update_usergroup_dash_tile_order($usergroup$usergroup_tiles[$i]['dash_tile'], $order_by);
        
$order_by -= 10;
        }
    }

This article was last updated 3rd October 2022 12:35 Europe/London time based on the source file dated 27th September 2022 15:05 Europe/London time.