node_is_active()

Description

Helper function to check if a node is active
Note: a node here requires the "active" key.

Parameters

ColumnTypeDefaultDescription
$node: array
$keyword string
$readonly: bool
0|1} array{'active': $node A node structure with at least the "active" key present

Location

include/node_functions.php lines 2879 to 2882

Definition

 
function node_is_active(array $node): bool
{
    return 
$node['active'] === 1;
}

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