Collections functions
General functions
Render 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 163 to 178

Definition

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

    
ps_query("DELETE FROM node WHERE ref = ?",array("i",$ref));

    
remove_all_node_keyword_mappings($ref);

    
clear_query_cache("schema");

    return;
    }

This article was last updated 24th May 2022 19:35 Europe/London time based on the source file dated 6th April 2022 16:35 Europe/London time.