You are here

function _questions_export_download in Quiz 6.6

2 calls to _questions_export_download()
qcollection_download_form_submit in includes/qcollection/qcollection.inc
This generic submit handler calls specific export functions
questions_export_form_submit in includes/questions_export/questions_export.admin.inc
This generic submit handler calls specific export functions

File

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

Code

function _questions_export_download($collection_node, $exporter) {
  list($engine, $format) = explode('_', $exporter);

  // TODO use dynamic function names to eliminate this switch
  switch ($engine) {
    case 'moodle':
      $count = _questions_export_moodle($collection_node, $format);
      break;
    case 'native':
      $count = _questions_export_native($collection_node, $format);
      break;
  }
  return $count;
}