function video_preset_import_submit in Video 7.2
Same name and namespace in other branches
- 7 modules/video_ui/video.preset.inc \video_preset_import_submit()
Submit handler for the preset import form.
1 string reference to 'video_preset_import_submit'
- video_preset_import_form in modules/
video_ui/ video.preset.inc - Imports a preset.
File
- modules/
video_ui/ video.preset.inc, line 792 - Administrative interface for maintaining video presets.
Code
function video_preset_import_submit($form, &$form_state) {
$preset = $form_state['preset'];
video_preset_save($preset);
drupal_set_message(t('The preset %preset_name has been imported.', array(
'%preset_name' => $preset['name'],
)));
$form_state['redirect'] = 'admin/config/media/video/presets';
}