moodle-local_replication/settings.php
2022-01-13 08:12:46 +01:00

36 lines
1.3 KiB
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/>.
defined('MOODLE_INTERNAL') || die();
if ($hassiteconfig) {
$ADMIN->add('localplugins', new admin_category('local_replication_settings', new lang_string('pluginname', 'local_replication')));
$settingspage = new admin_settingpage('local_replication', new lang_string('pluginname', 'local_replication'));
if ($ADMIN->fulltree) {
$settingspage->add(new admin_setting_configtext(
'local_replication/directory',
new lang_string('directory', 'local_replication'),
new lang_string('directory_help', 'local_replication'),
1
));
}
$ADMIN->add('localplugins', $settingspage);
}