You are here

function mediafront_create_preset_validate in MediaFront 7

Same name and namespace in other branches
  1. 6.2 includes/mediafront.preset.inc \mediafront_create_preset_validate()
  2. 6 includes/mediafront.preset.inc \mediafront_create_preset_validate()
  3. 7.2 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 390

Code

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