You are here

function video_preset_array_flatten in Video 7.2

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

Flatten the settings array.

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 646
Administrative interface for maintaining video presets.

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;
}