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

sort_tabs_as_configured()

Description

Sort list of tab names (preserving their key ID)

Parameters

ColumnTypeDefaultDescription
$tabs array List of tab ID and tab translated name pairs

Return

array

Location

include/tab_functions.php lines 102 to 110

Definition

 
function sort_tabs_as_configured(array $tabs)
    {
    if(
$GLOBALS['sort_tabs'] ?? false)
        {
        
asort($tabs);
        }

    return 
$tabs
    }

This article was last updated 19th March 2024 09:35 Europe/London time based on the source file dated 18th August 2023 11:35 Europe/London time.