function mediafront_create_preset_submit in MediaFront 7
Same name and namespace in other branches
- 6.2 includes/mediafront.preset.inc \mediafront_create_preset_submit()
- 6 includes/mediafront.preset.inc \mediafront_create_preset_submit()
- 7.2 includes/mediafront.preset.inc \mediafront_create_preset_submit()
Submit handler for the preset form.
1 string reference to 'mediafront_create_preset_submit'
- mediafront_preset_create_form in includes/
mediafront.preset.inc - Form builder; the create preset form.
File
- includes/
mediafront.preset.inc, line 399
Code
function mediafront_create_preset_submit($form, &$form_state) {
$preset = $form_state['values'];
$preset['name'] = strtolower($preset['name']);
mediafront_preset_save($preset);
$form_state['redirect'] = mediafront_get_presets_path() . '/preset/' . $preset['name'];
}