Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

move_featured_collection_branch_path_root()

Description

Move a featured collection branch paths' root to the node determined by the global configuration option $featured_collections_root_collection.

This temporarily moves the root of the featured collection branch, removing any nodes on the branch from the real root
up to the new root.

@see $featured_collections_root_collection configuration option

Parameters

ColumnTypeDefaultDescription
$branch_path array List of branch path nodes as returned by {@see compute_node_branch_path()}

Return

array

Location

include/collections_functions.php lines 5985 to 5999

Definition

 
function move_featured_collection_branch_path_root(array $branch_path)
    {
    global 
$featured_collections_root_collection;

    if(
$featured_collections_root_collection 0)
        {
        
$fc_root_col_position array_search($featured_collections_root_collectionarray_column($branch_path'ref'));
        if(
$fc_root_col_position !== false)
            {
            
$branch_path array_slice($branch_path, ++$fc_root_col_position);
            }
        }

    return 
$branch_path;
    }

This article was last updated 17th November 2024 15:35 Europe/London time based on the source file dated 13th November 2024 15:50 Europe/London time.