moodle/question/tabs.php

28 lines
628 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 = '';
}
2007-08-09 21:51:09 +00:00
if (!isset($COURSE)) {
print_error('No course specified');
2006-03-01 08:43:41 +00:00
}
$tabs = array();
$inactive = array();
$row = array();
questionbank_navigation_tabs($row, $contexts, $thispageurl->get_query_string());
2006-03-01 08:43:41 +00:00
$tabs[] = $row;
print_tabs($tabs, $currenttab, array());
2006-03-01 08:43:41 +00:00
?>