2009-11-04 11:58:30 +00:00
|
|
|
<?php
|
2011-02-21 16:13:25 +00:00
|
|
|
// This file is part of Moodle - http://moodle.org/
|
|
|
|
//
|
|
|
|
// Moodle is free software: you can redistribute it and/or modify
|
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
//
|
|
|
|
// Moodle is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU General Public License
|
|
|
|
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
2009-01-12 21:13:28 +00:00
|
|
|
|
2011-02-21 16:13:25 +00:00
|
|
|
/**
|
2013-03-19 18:20:54 +00:00
|
|
|
* Post-install script for the quiz responses report.
|
|
|
|
* @package quiz_responses
|
|
|
|
* @copyright 2013 Tim Hunt
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
2011-02-21 16:13:25 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-02-23 15:03:35 +00:00
|
|
|
defined('MOODLE_INTERNAL') || die();
|
|
|
|
|
|
|
|
|
2011-02-21 16:13:25 +00:00
|
|
|
/**
|
2013-03-19 18:20:54 +00:00
|
|
|
* Post-install script
|
2011-02-21 16:13:25 +00:00
|
|
|
*/
|
2013-03-19 18:20:54 +00:00
|
|
|
function xmldb_quiz_responses_install() {
|
2009-01-12 21:13:28 +00:00
|
|
|
global $DB;
|
|
|
|
|
2010-09-21 08:37:36 +00:00
|
|
|
$record = new stdClass();
|
2009-01-12 21:13:28 +00:00
|
|
|
$record->name = 'responses';
|
|
|
|
$record->displayorder = '9000';
|
|
|
|
|
2011-05-12 18:58:50 +01:00
|
|
|
$DB->insert_record('quiz_reports', $record);
|
2009-01-12 21:13:28 +00:00
|
|
|
}
|