Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

delete_dash_tile()

Parameters

ColumnTypeDefaultDescription
$tile
$cascade true
$force false

Location

include/dash_functions.php lines 200 to 211

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 14th December 2024 09:35 Europe/London time based on the source file dated 12th December 2024 19:40 Europe/London time.