Coding standards
Security in ResourceSpace
Developer reference
Database
Mcp browse functions
Mcp report functions
Mcp management functions
Core feature functions
Embed functions

get_active_extensions()

Description

Combine core feature and plugin callbacks in their configured execution order.

Parameters

ColumnTypeDefaultDescription
array { : array_mergeget_active_plugins
array_valuesget_active_core_features;

Return

array Active records in priority and name order, before group selection.

Location

include/core_feature_functions.php lines 177 to 189

Definition

 
function get_active_extensions(): array
{
    
$records = array_merge(get_active_plugins(), array_values(get_active_core_features()));
    foreach (
$records as &$record) {
        
$record['disable_group_select'] = isset(CORE_FEATURES[$record['name']])
            ? 
in_array($record['name'], CORE_FEATURES_ALL_GROUPS, true)
            : (bool) 
get_plugin_yaml($record['name'], false)['disable_group_select'];
    }
    unset(
$record);
    
usort($records, static fn(array $a, array $b): int =>
        ((int) 
$a['priority'] <=> (int) $b['priority']) ?: strcmp($a['name'], $b['name']));
    return 
$records;
}

This article was last updated 4th December 2026 17:35 Europe/London time based on the source file dated 4th December 2026 14:10 Europe/London time.