moodle/question/tabs.php

27 lines
599 B
PHP
Raw Normal View History

2006-03-01 08:43:41 +00:00
<?php // $Id$
/**
* Sets up the tabs used by the question bank editing page
*
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
* @package questionbank
*/
2006-03-01 08:43:41 +00:00
/// This file to be included so we can assume config.php has already been included.
if (!isset($currenttab)) {
$currenttab = '';
}
if (!isset($course)) {
error('No course specified');
}
$tabs = array();
$inactive = array();
$row = array();
questionbank_navigation_tabs($row, $context, $course->id);
2006-03-01 08:43:41 +00:00
$tabs[] = $row;
print_tabs($tabs, $currenttab, array());
2006-03-01 08:43:41 +00:00
?>