remove_invalid_resource_node_mappings()

Description

Delete invalid resource_node associations. Note, by invalid, it's meant where the node is missing.

Parameters

This function accepts no parameters.

Location

include/node_functions.php lines 2379 to 2382

Definition

 
function remove_invalid_resource_node_mappings()
{
    
ps_query('DELETE rn FROM resource_node AS rn LEFT JOIN node AS n ON n.ref = rn.node WHERE n.ref IS NULL');
}

This article was last updated 13th June 2025 21:35 Europe/London time based on the source file dated 9th May 2025 16:15 Europe/London time.