You are here

function video_admin_preset_configure_submit in Video 6.5

File

./video.admin.inc, line 440

Code

function video_admin_preset_configure_submit($form, &$form_state) {
  $values = $form_state['values'];
  $settings = array();
  foreach ($form_state['keys'] as $key) {
    if (isset($values[$key]) && $values[$key] !== '') {
      $settings[$key] = $values[$key];
    }
  }
  $form_state['preset']
    ->setSettings($settings);
}