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 99 to 107

Definition

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

    return 
$tabs
    }

This article was last updated 24th May 2024 11:35 Europe/London time based on the source file dated 16th May 2024 18:10 Europe/London time.