You are here

function video_admin_settings_validate in Video 6.3

Form API callback to validate the upload settings form.

Keeps the use from showing the play tab or the play link if they have chosen to display the video in the node body.

1 string reference to 'video_admin_settings_validate'
video_admin_settings in ./video.admin.inc
Settings Form

File

./video.admin.inc, line 274
Provides the administration settings for the Flowplayer Drupal module.

Code

function video_admin_settings_validate($form, &$form_state) {

  // check ffmpeg_wrapper installed or not
  if ($form_state['values']['vid_convertor'] == 'ffmpeg_wrapper' && !module_exists('ffmpeg_wrapper')) {
    form_set_error('vid_convertor', t('You do not have installed the !ffmpeg_wrapper module to enable using its plugin, please install it.', array(
      '!ffmpeg_wrapper' => l('ffmpeg_wrapper', 'http://drupal.org/project/ffmpeg_wrapper'),
    )));
  }
}