. /** * Plugin administration pages are defined here. * * @package mod_timetable * @category admin * @copyright 2020 Raphael Dannecker * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); if ($ADMIN->fulltree) { // TODO: Define the plugin settings page. // https://docs.moodle.org/dev/Admin_settings } $settings->add(new admin_setting_configcheckbox('timetable/saturday', get_string('labelsaturday', 'mod_timetable'), get_string('descsaturday', 'mod_timetable'), '0')); $settings->add(new admin_setting_configtext('timetable/fname_lesson', get_string('labelfnamelesson', 'mod_timetable'), get_string('descfnamelesson', 'mod_timetable'), '')); $settings->add(new admin_setting_configtext('timetable/fname_substitution', get_string('labelfnamesubst', 'mod_timetable'), get_string('descfnamesubst', 'mod_timetable'), '')); $settings->add(new admin_setting_configtext('timetable/fname_teacher', get_string('labelfnameteacher', 'mod_timetable'), get_string('descfnameteacher', 'mod_timetable'), '')); $settings->add(new admin_setting_configtext('timetable/fname_class', get_string('labelfnameclass', 'mod_timetable'), get_string('descfnameclass', 'mod_timetable'), '')); $settings->add(new admin_setting_configtext('timetable/fname_room', get_string('labelfnameroom', 'mod_timetable'), get_string('descfnamesroom', 'mod_timetable'), '')); $settings->add(new admin_setting_configtext('timetable/numperiod', get_string('labelnumperiod', 'mod_timetable'), get_string('descnumperiod', 'mod_timetable'), 12, PARAM_INT));