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 19th March 2024 06:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.