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

check_removed_ui_config()

Description

Check if there is a previously stored value for the given config option.
Intended for options that were previously set in the UI but now need to be set in config.

Parameters

ColumnTypeDefaultDescription
$option string
$default mixed "": bool { if !isset$GLOBALS[$option] The default value to set for the config option if not set anywhere

Return

bool True if the config option is overridden with a stored value from user_preferences, false if not

Location

include/config_functions.php lines 1987 to 1994

Definition

 
function check_removed_ui_config(string $option$default ""): bool
{
    if (!isset(
$GLOBALS[$option])) {
        
$GLOBALS[$option] = $GLOBALS[$option "_REMOVED"] ?? $default;
        return 
true;
    }
    return 
false;
}

This article was last updated 13th December 2024 20:35 Europe/London time based on the source file dated 11th December 2024 15:55 Europe/London time.