You are here

function mediafront_preset_delete_submit in MediaFront 7.2

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

Button sumit function: handle the 'Delete' button on the preset form.

1 string reference to 'mediafront_preset_delete_submit'
mediafront_preset_form in includes/mediafront.preset.inc

File

includes/mediafront.preset.inc, line 333

Code

function mediafront_preset_delete_submit($form, &$form_state) {
  $preset['name'] = $form_state['values']['name'];
  $form_state['redirect'] = mediafront_get_presets_path() . '/preset/' . $preset['name'] . '/delete';
}