You are here

function jplayer_settings_form_validate in jPlayer 6

Same name and namespace in other branches
  1. 7.2 includes/jplayer.admin.inc \jplayer_settings_form_validate()

Validation function to validate the jplayer_settings_form() form.

1 string reference to 'jplayer_settings_form_validate'
jplayer_settings_form in includes/jplayer.admin.inc
Menu callback; Provides the jPlayer settings form.

File

includes/jplayer.admin.inc, line 50
Administrative pages for the jPlayer module.

Code

function jplayer_settings_form_validate($form, &$form_state) {
  $form_state['jplayer_version'] = jplayer_get_version($form_state['values']['jplayer_directory']);
  if (!$form_state['jplayer_version']) {
    form_error($form['jplayer_directory'], t('The directory specified does not seem to contain the jPlayer library. Check to make sure that the jquery.player.min.js file is located within this directory.'));
  }
}