2009-11-01 15:03:10 +00:00
|
|
|
<?php
|
2010-07-25 11:06:52 +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/>.
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Add label form
|
|
|
|
*
|
|
|
|
* @package mod
|
|
|
|
* @subpackage label
|
|
|
|
* @copyright 2006 Jamie Pratt
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
|
|
|
*/
|
|
|
|
|
|
|
|
defined('MOODLE_INTERNAL') || die;
|
2010-05-13 02:02:05 +00:00
|
|
|
|
2007-06-10 23:20:45 +00:00
|
|
|
require_once ($CFG->dirroot.'/course/moodleform_mod.php');
|
2006-11-24 06:39:15 +00:00
|
|
|
|
2006-12-28 09:32:45 +00:00
|
|
|
class mod_label_mod_form extends moodleform_mod {
|
2006-11-13 09:20:42 +00:00
|
|
|
|
2007-05-08 15:44:37 +00:00
|
|
|
function definition() {
|
2006-11-13 09:20:42 +00:00
|
|
|
|
2010-07-25 11:06:52 +00:00
|
|
|
$mform = $this->_form;
|
2006-11-13 09:20:42 +00:00
|
|
|
|
2013-03-21 14:50:52 +08:00
|
|
|
$mform->addElement('header', 'generalhdr', get_string('general'));
|
2009-04-22 07:14:19 +00:00
|
|
|
$this->add_intro_editor(true, get_string('labeltext', 'label'));
|
2006-11-13 09:20:42 +00:00
|
|
|
|
2009-04-21 08:57:20 +00:00
|
|
|
$this->standard_coursemodule_elements();
|
2006-11-13 09:20:42 +00:00
|
|
|
|
2006-12-19 07:03:08 +00:00
|
|
|
//-------------------------------------------------------------------------------
|
2007-05-08 15:44:37 +00:00
|
|
|
// buttons
|
2008-02-21 14:12:48 +00:00
|
|
|
$this->add_action_buttons(true, false, null);
|
2006-12-19 07:03:08 +00:00
|
|
|
|
2007-05-08 15:44:37 +00:00
|
|
|
}
|
2006-11-13 09:20:42 +00:00
|
|
|
|
|
|
|
}
|