Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

delete_usergroup_dash_tile()

Parameters

ColumnTypeDefaultDescription
$tile
$group

Location

include/dash_functions.php lines 1596 to 1601

Definition

 
function delete_usergroup_dash_tile($tile,$group)
    {
    if(!
is_numeric($tile) || !is_numeric($group)){return false;}    
    
sql_query("DELETE FROM usergroup_dash_tile WHERE usergroup = '{$group}' AND dash_tile = '{$tile}'");                    
    
sql_query("DELETE ud.* FROM user_dash_tile ud LEFT JOIN user u ON ud.user=u.ref LEFT JOIN usergroup ug ON ug.ref=u.usergroup WHERE ud.dash_tile='" $tile "' and ug.ref='" $group "'");
    }

This article was last updated 11th July 2020 01:05 Europe/London time based on the source file dated 24th June 2020 14:38 Europe/London time.