Collections functions
General functions
Render functions
Theme permission functions
Resource functions

log_node_changes()

Description

Add detail of node changes to resource log

Note that this function originally required only the added and removed nodes to be passed.
This was prior to node reversion changes, which requires the logging of all the existing resource nodes

Parameters

ColumnTypeDefaultDescription
$resource integer Resource ID
$nodes_new array Array of new node IDs
$nodes_current array Array of old node IDs
$lognote string "" Optional note to add to log entry
$nodes_renamed array [] Optional array of old node names with node id as key e.g. [345 => 'oldname',678 => "pastname"]

Return

boolean Success/failure

This article was last updated 4th February 2023 12:35 Europe/London time based on the source file dated 23rd January 2023 16:50 Europe/London time.