You are here

function video_admin_preset_delete in Video 6.5

1 string reference to 'video_admin_preset_delete'
video_menu in ./video.module
Implementation of hook_menu().

File

./video.admin.inc, line 340

Code

function video_admin_preset_delete($form_state, video_preset $preset) {
  $form = array(
    '#redirect' => 'admin/settings/video/presets',
    '#preset' => $preset,
  );
  $form['text'] = array(
    '#type' => 'item',
    '#value' => t('Are you sure you want to delete preset @preset? All associated settings and transcoder configurations will be lost.', array(
      '@preset' => $preset->name,
    )),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Submit'),
    '#suffix' => l(t('Back'), $form['#redirect']),
  );
  return $form;
}