You are here

function mediafront_create_preset_validate in MediaFront 6.2

Same name and namespace in other branches
  1. 6 includes/mediafront.preset.inc \mediafront_create_preset_validate()
  2. 7.2 includes/mediafront.preset.inc \mediafront_create_preset_validate()
  3. 7 includes/mediafront.preset.inc \mediafront_create_preset_validate()

Validation for the preset form.

1 string reference to 'mediafront_create_preset_validate'
mediafront_preset_create_form in includes/mediafront.preset.inc
Form builder; the create preset form.

File

includes/mediafront.preset.inc, line 411

Code

function mediafront_create_preset_validate($form, &$form_state) {
  if ($error = mediafront_validate_preset_name($form_state['values']['name'])) {
    form_set_error('name', $error);
  }
}