Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 9th November 2024 17:05 Europe/London time based on the source file dated 10th September 2024 17:30 Europe/London time.