You are here

function video_image_admin_settings_validate in Video 5

Same name and namespace in other branches
  1. 6 plugins/video_image/video_image.module \video_image_admin_settings_validate()
  2. 6.2 plugins/video_image/video_image.module \video_image_admin_settings_validate()

File

plugins/video_image/video_image.module, line 107
Enable image support for video module.

Code

function video_image_admin_settings_validate($form_id, &$form_values, &$form) {
  if (module_exists('video_ffmpeg_helper')) {
    if ($form_values['video_image_auto_thumbnail']) {
      $path_ok = _video_ffmpeg_helper_check_exe_path();
      if (!$path_ok) {
        drupal_set_message(t('The path for \'ffmpeg\' is not valid.  Please check settings on the !ffmpeg_settings_page', array(
          '!ffmpeg_settings_page' => l(t('Video ffmpeg helper settings page'), 'admin/settings/video/ffmpeg_helper'),
        )), 'error');
      }
    }
  }
}