Collections functions
General functions
Render functions
Theme permission functions
Resource functions

delete_dash_tile()

Parameters

ColumnTypeDefaultDescription
$tile
$cascade TRUE
$force FALSE

Location

include/dash_functions.php lines 190 to 201

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";
    
ps_query("DELETE FROM dash_tile WHERE ref= ? ".$allow_delete, ['i'$tile]);
    if(
$cascade)
        {
        
ps_query("DELETE FROM user_dash_tile WHERE dash_tile= ?", ['i'$tile]);
        
ps_query("DELETE FROM usergroup_dash_tile WHERE dash_tile = ?", ['i'$tile]);
        }
    
hook('after_delete_dash_tile''', array($tile$cascade $force));
    }

This article was last updated 4th October 2022 11:35 Europe/London time based on the source file dated 27th September 2022 15:05 Europe/London time.