Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / question / tabs.php
blobda5847a38b6d420d174d78fae390cf575deb45a7
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, $context, 'courseid='.$course->id);
22 $tabs[] = $row;
24 print_tabs($tabs, $currenttab, array());