3 * Sets up the tabs used by the question bank editing page
6 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
10 /// This file to be included so we can assume config.php has already been included.
12 if (!isset($currenttab)) {
15 if (!isset($course)) {
16 error('No course specified');
23 $row[] = new tabobject('questions', "$CFG->wwwroot/question/edit.php?courseid=$course->id", get_string('questions', 'quiz'), get_string('editquizquestions', 'quiz'));
24 $row[] = new tabobject('categories', "$CFG->wwwroot/question/category.php?id=$course->id", get_string('categories', 'quiz'), get_string('editqcats', 'quiz'));
25 $row[] = new tabobject('import', "$CFG->wwwroot/question/import.php?course=$course->id", get_string('import', 'quiz'), get_string('importquestions', 'quiz'));
26 $row[] = new tabobject('export', "$CFG->wwwroot/question/export.php?courseid=$course->id", get_string('export', 'quiz'), get_string('exportquestions', 'quiz'));
30 print_tabs($tabs, $currenttab, $inactive);