Collections functions
General functions
Node functions
Render functions
Theme permission functions
User functions
Resource functions

get_featured_collection_category_branch_by_leaf()

Description

Get to the root of the branch starting from the leaf featured collection

Parameters

ColumnTypeDefaultDescription
$ref integer Collection ref which is considered a leaf of the tree
$fcs array List of all featured collections

Return

array Branch path structure starting from root to the leaf

Location

include/collections_functions.php lines 5805 to 5813

Definition

 
function get_featured_collection_category_branch_by_leaf(int $ref, array $fcs)
    {
    if(empty(
$fcs))
        {
        
$fcs get_all_featured_collections();
        }

    return 
compute_node_branch_path($fcs$ref);
    }

This article was last updated 19th April 2024 00:35 Europe/London time based on the source file dated 15th April 2024 12:15 Europe/London time.