Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

delete_user_dash_tile()

Parameters

ColumnTypeDefaultDescription
$usertile
$user

Location

include/dash_functions.php lines 921 to 933

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