Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

delete_resource_nodes_multi()

Description

Delete all node relationships matching the passed resource IDs and node IDs.

Parameters

ColumnTypeDefaultDescription
$resources array array An array of resource IDs
$nodes mixed array An integer or array of single/multiple nodes

Return

void

Location

include/node_functions.php lines 1345 to 1352

Definition

 
function delete_resource_nodes_multi($resources=array(),$nodes=array())
    {
    if(!
is_array($nodes))
        {
$nodes=array($nodes);}
        
    
$sql "DELETE FROM resource_node WHERE resource in ('" implode("','",$resources) . "') AND node in ('" implode("','",$nodes) . "')";
    
sql_query($sql);
    }

This article was last updated 13th July 2020 16:05 Europe/London time based on the source file dated 6th July 2020 18:09 Europe/London time.