You are here

function video_admin_preset_submit in Video 6.5

File

./video.admin.inc, line 320

Code

function video_admin_preset_submit($form, $form_state) {
  $v = $form_state['values'];
  $preset = $form['#preset'];
  if (!$preset) {
    $preset = new stdClass();
    $update = array();
  }
  else {
    $update = 'id';
  }
  $preset->name = $v['name'];
  $preset->help = $v['help'];
  $preset->extension = $v['extension'];
  $preset->filenamesuffix = $v['filenamesuffix'];
  drupal_write_record('video_preset', $preset, $update);
}