You are here

function mediafront_create_preset_submit in MediaFront 6.2

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

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