You are here

function uc_importer_import_form in Ubercart 5

Upload form for an XML file to be imported.

See also

uc_importer_import_form_submit

1 string reference to 'uc_importer_import_form'
uc_importer_import_page in uc_importer/uc_importer.module
Wrapper function to generate a page to hold the import form.

File

uc_importer/uc_importer.module, line 326
XML product importer and exporter.

Code

function uc_importer_import_form() {
  $form = array();
  $form['#attributes'] = array(
    'enctype' => "multipart/form-data",
  );
  $form['file'] = array(
    '#type' => 'file',
    '#title' => t('Import XML File'),
  );
  $form['directory'] = array(
    '#type' => 'textfield',
    '#title' => t('Directory containing XML files'),
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Import'),
  );
  return $form;
}