You are here

function video_preset_array_flatten in Video 7

Same name and namespace in other branches
  1. 7.2 modules/video_ui/video.preset.inc \video_preset_array_flatten()

Flatten the settings array.

Parameters

<type> $array:

<type> $return:

Return value

<type>

1 call to video_preset_array_flatten()
video_preset_submit in modules/video_ui/video.preset.inc
Submit handler for the preset form.

File

modules/video_ui/video.preset.inc, line 460

Code

function video_preset_array_flatten($array, $return = array()) {
  foreach ($array as $key => $value) {
    if (is_array($value)) {
      $return = video_preset_array_flatten($value, $return);
    }
    else {
      $return[$key] = $value;
    }
  }
  return $return;
}