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

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 2561 to 2564

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 18th May 2024 19:05 Europe/London time based on the source file dated 14th May 2024 18:25 Europe/London time.