You are here

function mediafront_preset_delete_confirm_submit in MediaFront 7.2

Same name and namespace in other branches
  1. 6.2 includes/mediafront.preset.inc \mediafront_preset_delete_confirm_submit()
  2. 6 includes/mediafront.preset.inc \mediafront_preset_delete_confirm_submit()
  3. 7 includes/mediafront.preset.inc \mediafront_preset_delete_confirm_submit()

Execute preset deletion

File

includes/mediafront.preset.inc, line 351

Code

function mediafront_preset_delete_confirm_submit($form, &$form_state) {
  if ($form_state['values']['confirm']) {
    mediafront_preset_delete($form_state['values']['name']);
  }
  $form_state['redirect'] = mediafront_get_presets_path();
}