Collections functions
General functions
Node 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 2210 to 2213

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 19th March 2024 03:05 Europe/London time based on the source file dated 15th March 2024 17:00 Europe/London time.