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 4947 to 4955

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 21st April 2021 17:35 Europe/London time based on the source file dated 19th April 2021 16:50 Europe/London time.