You are here

function video_transcoder_admin_settings_validate in Video 6.4

Same name and namespace in other branches
  1. 6.5 video.admin.inc \video_transcoder_admin_settings_validate()
  2. 7.2 modules/video_ui/video.admin.inc \video_transcoder_admin_settings_validate()
  3. 7 modules/video_ui/video.admin.inc \video_transcoder_admin_settings_validate()

Form API callback to validate the upload settings form.

File

./video.admin.inc, line 22

Code

function video_transcoder_admin_settings_validate($form, &$form_state) {

  // add validations by transcoder interface
  $transcoder = $form_state['values']['vid_convertor'];
  module_load_include('inc', 'video', '/includes/transcoder');
  $transcoder = new video_transcoder($transcoder);
  $transcoder
    ->admin_settings_validate($form, $form_state);
}