You are here

function questions_export_form in Quiz 6.5

Same name and namespace in other branches
  1. 6.6 includes/questions_export/questions_export.admin.inc \questions_export_form()

Implementation of hook_form form to upload questions

1 string reference to 'questions_export_form'
questions_export_menu in includes/questions_export/questions_export.module
Implementation of hook_menu

File

includes/questions_export/questions_export.admin.inc, line 15

Code

function questions_export_form() {
  $form['#attributes'] = array(
    'enctype' => 'multipart/form-data',
  );
  $form['quiz_node'] = array(
    '#type' => 'select',
    '#title' => t('Quiz'),
    '#options' => quiz_get_all_quiz_title(),
    '#description' => t('Select the quiz node to export.'),
    '#required' => TRUE,
  );
  $form['export_format'] = array(
    '#type' => 'select',
    '#title' => t('Export format'),
    '#options' => questions_export_formats(),
    '#description' => t('Select the data format to export into.'),
    '#required' => TRUE,
  );
  $form['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Export'),
  );
  $form['#submit'][] = 'questions_export_form_submit';
  return $form;
}