Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video 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 4677 to 4685

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 18th January 2021 10:05 Europe/London time based on the source file dated 13th January 2021 13:50 Europe/London time.