Collections functions
General functions
Render functions
Theme permission functions
Resource functions

cattree_node_creator()

Description

Helper function for building node entry arrays for ordering

Parameters

ColumnTypeDefaultDescription
$ref int Node id
$resource_type_field int Category tree field id
$name string Node name
$parent int Parent node id
$order_by int Node order by
$resource int Resource id
$children array Array of child node ids

Return

array

Location

include/node_functions.php lines 2159 to 2162

Definition

 
function cattree_node_creator($ref$resource_type_field$name$parent$order_by$resource$children) {
    return array(
'ref' => $ref'resource_type_field' => $resource_type_field'name' => $name
                
'parent' => $parent'order_by' => $order_by'resource' => $resource'children' => $children);
};

This article was last updated 2nd December 2022 20:35 Europe/London time based on the source file dated 25th November 2022 11:35 Europe/London time.