Issue:
[moodle-pu.git] / question / tabs.php
blob3f6868c5356e57b09d08bb9fbc3c9e680ab58d49
1 <?php // $Id$
2 /**
3 * Sets up the tabs used by the question bank editing page
5 * @license http://www.gnu.org/copyleft/gpl.html GNU Public License
6 * @package questionbank
7 */
9 /// This file to be included so we can assume config.php has already been included.
11 if (!isset($currenttab)) {
12 $currenttab = '';
14 if (!isset($COURSE)) {
15 error('No course specified');
18 $tabs = array();
19 $inactive = array();
20 $row = array();
21 questionbank_navigation_tabs($row, $contexts, $thispageurl->get_query_string());
22 $tabs[] = $row;
24 print_tabs($tabs, $currenttab, array());