1 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

core/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);
}