You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
2.3 KiB

<?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/>.
/**
* Mass enrol admin settings and defaults
*
* File settings.php
* Encoding UTF-8
*
* @package local_mass_enroll
*
* @copyright Sebsoft.nl
* @copyright 2012 onwards Patrick Pollet
* @copyright 2015 onwards R.J. van Dongen <rogier@sebsoft.nl>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
defined('MOODLE_INTERNAL') || die;
if ($hassiteconfig) {
$settings = new admin_settingpage('localsettingmassenroll', new lang_string('massenrollsettings', 'local_mass_enroll'));
$settings->add(new admin_setting_heading('localmassenrolldefaults',
get_string('localmassenrolldefaults', 'local_mass_enroll'),
''));
$yesno = array(0 => get_string('no'), 1 => get_string('yes'));
$settings->add(new admin_setting_configselect('local_mass_enroll/mailreportdefault',
get_string('mailreportdefault', 'local_mass_enroll'),
get_string('mailreportdefault_help', 'local_mass_enroll'), 1, $yesno));
$settings->add(new admin_setting_heading('localmassenrollextensions',
get_string('localmassenrollextensions', 'local_mass_enroll'),
''));
$settings->add(new admin_setting_configcheckbox('local_mass_enroll/enablemassenrol',
get_string('enablemassenrol', 'local_mass_enroll'),
get_string('enablemassenrol_help', 'local_mass_enroll'), 1));
$settings->add(new admin_setting_configcheckbox('local_mass_enroll/enablemassunenrol',
get_string('enablemassunenrol', 'local_mass_enroll'),
get_string('enablemassunenrol_help', 'local_mass_enroll'), 1));
$ADMIN->add('localplugins', $settings);
}