Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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 19th March 2024 07:35 Europe/London time based on the source file dated 23rd February 2024 17:00 Europe/London time.