function video_preset_revert_confirm in Video 7.2
Menu callback; revert a single preset.
1 string reference to 'video_preset_revert_confirm'
- video_ui_menu in modules/
video_ui/ video_ui.module - Implements hook_menu().
File
- modules/
video_ui/ video.preset.inc, line 700 - Administrative interface for maintaining video presets.
Code
function video_preset_revert_confirm($form, &$form_state, $preset) {
$form['name'] = array(
'#type' => 'value',
'#value' => $preset['name'],
);
return confirm_form($form, t('Are you sure you want to revert the preset %name?', array(
'%name' => $preset['name'],
)), 'admin/config/media/video/presets', '<p>' . t('This will revert the preset to the default settings provided by module %module_name.', array(
'%module_name' => $preset['module'],
)) . '<br/>' . t('This action cannot be undone.') . '</p>', t('Revert'));
}