Collections functions
General functions
Render functions
Theme permission functions
Resource functions

override_rs_variables_by_eval()

Description

Run PHP code on array of variables. Used for modifying $GLOBALS.

Parameters

ColumnTypeDefaultDescription
$variables array Array of variables to apply override on.
$code string Signed string containing the PHP code to run.

Return

void

Location

include/config_functions.php lines 1282 to 1295

Definition

 
function override_rs_variables_by_eval(array $variablesstring $code)
    {
    
$temp_variables $variables;

    
extract($temp_variablesEXTR_REFS EXTR_SKIP);
    eval(
eval_check_signed($code));

    foreach(
$temp_variables as $temp_variable_name => $temp_variable_val)
        {
        
$GLOBALS[$temp_variable_name] = $temp_variable_val;
        }

    return;
    }

This article was last updated 26th September 2022 13:35 Europe/London time based on the source file dated 26th August 2022 16:20 Europe/London time.