function video_preset_import_form in Video 7
Same name and namespace in other branches
- 7.2 modules/video_ui/video.preset.inc \video_preset_import_form()
Import's a preset.
1 string reference to 'video_preset_import_form'
- video_ui_menu in modules/
video_ui/ video_ui.module - Implementation of hook_menu().
File
- modules/
video_ui/ video.preset.inc, line 534
Code
function video_preset_import_form($form, &$form_state) {
$form['preset'] = array(
'#title' => t('Preset Code'),
'#type' => 'textarea',
'#rows' => 10,
'#description' => t('Copy the export text and paste it into this text field to import a new preset.'),
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Import Preset'),
'#weight' => 30,
);
$form['#submit'][] = 'video_preset_import_submit';
$form['#validate'][] = 'video_preset_import_validate';
return $form;
}