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

delete_dash_tile()

Parameters

ColumnTypeDefaultDescription
$tile
$cascade TRUE
$force FALSE

Location

include/dash_functions.php lines 180 to 191

Definition

 
function delete_dash_tile($tile,$cascade=TRUE,$force=FALSE)
    {
    
#Force Delete ignores the allow_delete flag (This allows removal of config tiles)
    
$allow_delete $force"":"AND allow_delete=1";
    
sql_query("DELETE FROM dash_tile WHERE ref='".$tile."' ".$allow_delete);
    if(
$cascade)
        {
        
sql_query("DELETE FROM user_dash_tile WHERE dash_tile='".$tile."'");
        
sql_query("DELETE FROM usergroup_dash_tile WHERE dash_tile = '{$tile}'");
        }
    
hook('after_delete_dash_tile''', array($tile$cascade $force));
    }

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