Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

delete_nodes_for_resource_type_field()

Description

Delete all nodes for a resource type field

Parameters

ColumnTypeDefaultDescription
$ref
$resource_type_field integer ID of the resource type field

Return

void

Location

include/node_functions.php lines 223 to 231

Definition

 
function delete_nodes_for_resource_type_field($ref)
    {
    if(
is_null($ref) || '' === trim($ref) || === $ref)
        {
        
trigger_error('$ref must be an integer greater than 0');
        }

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

This article was last updated 20th July 2024 21:35 Europe/London time based on the source file dated 8th July 2024 10:20 Europe/London time.