You are here

function mediafront_preset_delete_confirm in MediaFront 7

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

Menu callback; delete a single preset.

1 string reference to 'mediafront_preset_delete_confirm'
mediafront_preset_menu in includes/mediafront.preset.inc
Implement the menu system for the preset.

File

includes/mediafront.preset.inc, line 314

Code

function mediafront_preset_delete_confirm($form, &$form_state, $preset) {
  $form['name'] = array(
    '#type' => 'value',
    '#value' => $preset['name'],
  );
  $message = t('Are you sure you want to delete the preset %name?', array(
    '%name' => $preset['name'],
  ));
  $caption = '<p>' . t('This action cannot be undone.') . '</p>';
  return confirm_form($form, $message, mediafront_get_presets_path(), $caption, t('Delete'));
}