You are here

function _video_preset_name_validate in Video 7

Same name and namespace in other branches
  1. 7.2 modules/video_ui/video.preset.inc \_video_preset_name_validate()

Validation for the preset form.

1 string reference to '_video_preset_name_validate'
video_preset_form in modules/video_ui/video.preset.inc
Preset form

File

modules/video_ui/video.preset.inc, line 524

Code

function _video_preset_name_validate($element, &$form_state) {
  $error = video_validate_preset_name($form_state['values']['name']);
  if ($error && !isset($form_state['values']['pid']) && !isset($form_state['values']['default'])) {
    form_set_error('name', $error);
  }
}