1.12.x drupal.inc drupal_array_set_nested_value(array &$array, array $parents, $value, $force = FALSE)
1.10.x drupal.inc drupal_array_set_nested_value(array &$array, array $parents, $value, $force = FALSE)
1.11.x drupal.inc drupal_array_set_nested_value(array &$array, array $parents, $value, $force = FALSE)
1.7.x drupal.inc drupal_array_set_nested_value(array &$array, array $parents, $value, $force = FALSE)

Sets a value in a nested array with variable depth.

Deprecated

since 1.0.0

See also

backdrop_array_set_nested_value()

Related topics

File

includes/drupal.inc, line 1394
Contains constants and function wrappers for Drupal 7.x compatibility.

Code

function drupal_array_set_nested_value(array &$array, array $parents, $value, $force = FALSE) {
  watchdog_deprecated_function('drupal', __FUNCTION__);
  backdrop_array_set_nested_value($array, $parents, $value, $force);
}