Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

delete_usergroup_dash_tile()

Parameters

ColumnTypeDefaultDescription
$tile
$group

Location

include/dash_functions.php lines 1660 to 1665

Definition

 
function delete_usergroup_dash_tile($tile,$group)
    {
    if(!
is_numeric($tile) || !is_numeric($group)){return false;}    
    
ps_query("DELETE FROM usergroup_dash_tile WHERE usergroup = ? AND dash_tile = ?", ['i'$group'i'$tile]);                   
    
ps_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= ? and ug.ref= ?", ['i'$tile'i'$group]);
    }

This article was last updated 19th March 2024 08:35 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.