|
@ -1,15 +1,27 @@ |
|
|
<?php |
|
|
<?php |
|
|
|
|
|
// 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/>. |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* ************************************************************************* |
|
|
* @package enrol_apply |
|
|
* * Apply Enrol ** |
|
|
* @copyright emeneo.com (http://emeneo.com/) |
|
|
* ************************************************************************* |
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
|
|
* @copyright emeneo.com ** |
|
|
* @author emeneo.com (http://emeneo.com/) |
|
|
* @link emeneo.com ** |
|
|
* @author Johannes Burk <johannes.burk@sudile.com> |
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later ** |
|
|
*/ |
|
|
* ************************************************************************* |
|
|
|
|
|
* ************************************************************************ |
|
|
|
|
|
*/ |
|
|
|
|
|
defined('MOODLE_INTERNAL') || die(); |
|
|
defined('MOODLE_INTERNAL') || die(); |
|
|
|
|
|
|
|
|
require_once($CFG->libdir.'/formslib.php'); |
|
|
require_once($CFG->libdir.'/formslib.php'); |
|
@ -29,7 +41,7 @@ class enrol_apply_edit_form extends moodleform { |
|
|
$options = array(1 => get_string('yes'), |
|
|
$options = array(1 => get_string('yes'), |
|
|
0 => get_string('no')); |
|
|
0 => get_string('no')); |
|
|
$mform->addElement('select', 'status', get_string('status', 'enrol_apply'), $options); |
|
|
$mform->addElement('select', 'status', get_string('status', 'enrol_apply'), $options); |
|
|
//$mform->addHelpButton('status', 'status', 'enrol_apply'); |
|
|
// $mform->addHelpButton('status', 'status', 'enrol_apply'); |
|
|
$mform->setDefault('status', $plugin->get_config('status')); |
|
|
$mform->setDefault('status', $plugin->get_config('status')); |
|
|
|
|
|
|
|
|
if ($instance->id) { |
|
|
if ($instance->id) { |
|
|