You are here

function mediafront_preset_import_submit in MediaFront 7.2

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

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'];
}