_drupal_rewrite_settings_global(&$ref, $variable)
Helper for drupal_rewrite_settings().
Makes the new settings global.
array|null $ref: A reference to a nested index in $GLOBALS.
array|object $variable: The nested value of the setting being copied.
function _drupal_rewrite_settings_global(&$ref, $variable) { if (is_object($variable)) { $ref = $variable->value; } else { foreach ($variable as $k => $v) { _drupal_rewrite_settings_global($ref[$k], $v); } } }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!includes!install.inc/function/_drupal_rewrite_settings_global/8.1.x