Collections functions
General functions
Render functions
Theme permission functions
User 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 2183 to 2186

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 11th December 2023 10:05 Europe/London time based on the source file dated 8th November 2023 16:10 Europe/London time.