function mediafront_preset_import_form in MediaFront 6.2
Same name and namespace in other branches
- 6 includes/mediafront.preset.inc \mediafront_preset_import_form()
- 7.2 includes/mediafront.preset.inc \mediafront_preset_import_form()
- 7 includes/mediafront.preset.inc \mediafront_preset_import_form()
Import's a preset.
1 string reference to 'mediafront_preset_import_form'
- mediafront_preset_menu in includes/
mediafront.preset.inc - Implement the menu system for the preset.
File
- includes/
mediafront.preset.inc, line 430
Code
function mediafront_preset_import_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'][] = 'mediafront_preset_import_submit';
$form['#validate'][] = 'mediafront_preset_import_validate';
return $form;
}