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

delete_user_dash_tile()

Parameters

ColumnTypeDefaultDescription
$usertile
$user

Location

include/dash_functions.php lines 945 to 957

Definition

 
function delete_user_dash_tile($usertile,$user)
    {
    if(!
is_numeric($usertile) || !is_numeric($user)){return false;}
    
    
$row get_user_tile($usertile,$user);
    
sql_query("DELETE FROM user_dash_tile WHERE ref='".$usertile."' and user='".$user."'");

    
$existing sql_query("SELECT count(*) as 'count' FROM user_dash_tile WHERE dash_tile='".$row["dash_tile"]."'");
    if(
$existing[0]["count"]<1)
        {
        
delete_dash_tile($row["dash_tile"]);
        }
    }

This article was last updated 23rd November 2020 16:35 Europe/London time based on the source file dated 3rd November 2020 16:55 Europe/London time.