Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

delete_node()

Description

Delete node

Parameters

ColumnTypeDefaultDescription
$ref integer ID of the node

Return

void

Location

include/node_functions.php lines 130 to 146

Definition

 
function delete_node($ref)
    {
    
// TODO: if node is parent then don't delete it for now
    
if(is_parent_node($ref))
        {
        return;
        }

    
$query "DELETE FROM node WHERE ref = '" escape_check($ref) . "';";
    
sql_query($query);

    
remove_all_node_keyword_mappings($ref);

    
clear_query_cache("schema");

    return;
    }

This article was last updated 11th July 2020 02:35 Europe/London time based on the source file dated 6th July 2020 18:09 Europe/London time.