function video_image_admin_settings_validate in Video 6.2
Same name and namespace in other branches
- 5 plugins/video_image/video_image.module \video_image_admin_settings_validate()
- 6 plugins/video_image/video_image.module \video_image_admin_settings_validate()
File
- plugins/
video_image/ video_image.module, line 115 - Enable image support for video module.
Code
function video_image_admin_settings_validate($form, &$form_state) {
if (module_exists('video_ffmpeg_helper')) {
if ($form_state['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');
}
}
}
}