function mediafront_preset_import_submit in MediaFront 6
Same name and namespace in other branches
- 6.2 includes/mediafront.preset.inc \mediafront_preset_import_submit()
- 7.2 includes/mediafront.preset.inc \mediafront_preset_import_submit()
- 7 includes/mediafront.preset.inc \mediafront_preset_import_submit()
Submit handler for the preset import form.
1 string reference to 'mediafront_preset_import_submit'
- mediafront_preset_import_form in includes/
mediafront.preset.inc - Import's a preset.
File
- includes/
mediafront.preset.inc, line 477
Code
function mediafront_preset_import_submit($form, &$form_state) {
$preset = $form_state['preset'];
mediafront_preset_save($preset);
$form_state['redirect'] = mediafront_get_presets_path() . '/preset/' . $preset['name'];
}