_drupal_rewrite_settings_global

_drupal_rewrite_settings_global(&$ref, $variable)

Helper for drupal_rewrite_settings().

Makes the new settings global.

Parameters

array|null $ref: A reference to a nested index in $GLOBALS.

array|object $variable: The nested value of the setting being copied.

File

core/includes/install.inc, line 414
API functions for installing modules and themes.

Code

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);
    }
  }
}
doc_Drupal
2016-10-29 09:57:10
Comments
Leave a Comment

Please login to continue.