Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

reorder_usergroup_dash()

Parameters

ColumnTypeDefaultDescription
$usergroup

Location

include/dash_functions.php lines 752 to 762

Definition

 
function reorder_usergroup_dash($usergroup)
    {
    
$usergroup_tiles sql_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 = '{$usergroup}' ORDER BY usergroup_dash_tile.default_order_by");
    
$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 24th November 2020 17:35 Europe/London time based on the source file dated 3rd November 2020 16:55 Europe/London time.