You are here

function video_preset_validate in Video 7.2

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

Validation for the preset form.

1 string reference to 'video_preset_validate'
video_preset_form in modules/video_ui/video.preset.inc
Preset form builder.

File

modules/video_ui/video.preset.inc, line 588
Administrative interface for maintaining video presets.

Code

function video_preset_validate($form, &$form_state) {
  $v =& $form_state['values'];

  // Silently uncheck the checkbox if there is no watermark file
  if (!empty($v['video_watermark_enabled']) && empty($v['video_watermark_fid'])) {
    $v['video_watermark_enabled'] = 0;
  }
}