You are here

function mediafront_preset_import_form in MediaFront 7

Same name and namespace in other branches
  1. 6.2 includes/mediafront.preset.inc \mediafront_preset_import_form()
  2. 6 includes/mediafront.preset.inc \mediafront_preset_import_form()
  3. 7.2 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 409

Code

function mediafront_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'][] = 'mediafront_preset_import_submit';
  $form['#validate'][] = 'mediafront_preset_import_validate';
  return $form;
}