Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
1) have a variable overriden
2) delete that override
3) call variable_realm_refresh
4) variable still set to old value
Since global is active, and global contains the override,
// Only update value if this is the current realm.
if (variable_realm_status($realm_name) === $realm_key) {
foreach (variable_realm_current() as $realm_controller) {
$value = $realm_controller->getCurrentStore()->variable_get($variable_name, $value);
}
}
The first pass of this sets $value to the value in $conf, e.g.the overriden value that has since been deleted.
Comments
Comment #1
hefox CreditAttribution: hefox at Phase2 commentedNevermind, my bad~