function video_preset_delete_confirm in Video 7.2
Same name and namespace in other branches
- 7 modules/video_ui/video.preset.inc \video_preset_delete_confirm()
Menu callback; delete a single preset.
1 string reference to 'video_preset_delete_confirm'
- video_ui_menu in modules/
video_ui/ video_ui.module - Implements hook_menu().
File
- modules/
video_ui/ video.preset.inc, line 677 - Administrative interface for maintaining video presets.
Code
function video_preset_delete_confirm($form, &$form_state, $preset) {
if (in_array($preset['name'], variable_get('video_preset', array()))) {
drupal_access_denied();
exit;
}
$form['name'] = array(
'#type' => 'value',
'#value' => $preset['name'],
);
return confirm_form($form, t('Are you sure you want to delete the preset %name?', array(
'%name' => $preset['name'],
)), 'admin/config/media/video/presets', '<p>' . t('This action cannot be undone.') . '</p>', t('Delete'));
}