function mediafront_create_preset_validate in MediaFront 7.2
Same name and namespace in other branches
- 6.2 includes/mediafront.preset.inc \mediafront_create_preset_validate()
- 6 includes/mediafront.preset.inc \mediafront_create_preset_validate()
- 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 417
Code
function mediafront_create_preset_validate($form, &$form_state) {
if ($error = mediafront_validate_preset_name($form_state['values']['name'])) {
form_set_error('name', $error);
}
}