Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

reorder_usergroup_dash()

Parameters

ColumnTypeDefaultDescription
$usergroup

Location

include/dash_functions.php lines 728 to 738

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 12th July 2020 04:05 Europe/London time based on the source file dated 24th June 2020 14:38 Europe/London time.