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 178 to 192

Definition

 
function delete_node($ref)
    {
    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 30th September 2022 17:05 Europe/London time based on the source file dated 30th September 2022 14:20 Europe/London time.