You are here

function qcollection_download_form in Quiz 6.6

Return a form for selecting the export settings

1 string reference to 'qcollection_download_form'
qcollection_download in includes/qcollection/qcollection.inc
Callback for menu which returns a form for downloading.

File

includes/qcollection/qcollection.inc, line 256

Code

function qcollection_download_form() {
  module_load_include('inc', 'questions_export', 'questions_export.admin');
  $form['exporter'] = array(
    '#type' => 'select',
    '#title' => t('Export format'),
    '#options' => _questions_exporters(),
    '#description' => t('Select the data format to export into.'),
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Download'),
  );
  return $form;
}