You are here

function videojs_settings_form_validate in Video.js (HTML5 Video Player) 7

Same name and namespace in other branches
  1. 6.2 includes/videojs.admin.inc \videojs_settings_form_validate()
  2. 6 includes/videojs.admin.inc \videojs_settings_form_validate()
  3. 7.3 includes/videojs.admin.inc \videojs_settings_form_validate()
  4. 7.2 includes/videojs.admin.inc \videojs_settings_form_validate()

Validation function to validate the videojs_settings_form() form.

1 string reference to 'videojs_settings_form_validate'
videojs_settings_form in includes/videojs.admin.inc
Menu callback; Provides the Video.js settings form.

File

includes/videojs.admin.inc, line 61
Administrative pages for the Video.js module.

Code

function videojs_settings_form_validate($form, &$form_state) {
  $form_state['videojs_version'] = videojs_get_version($form_state['values']['videojs_directory']);
  if (!$form_state['videojs_version']) {
    form_error($form['videojs_directory'], t('The directory specified does not seem to contain the Video.js library. Check to make sure that the video.js file is located within this directory.'));
  }
}