. /** * Manage custom fields for sessions. * * @package mod_attendance * @copyright 2022 Dan Marsden * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ require_once('../../config.php'); require_once($CFG->libdir.'/adminlib.php'); admin_externalpage_setup('managemodules'); $output = $PAGE->get_renderer('core_customfield'); $handler = mod_attendance\customfield\session_handler::create(); $outputpage = new \core_customfield\output\management($handler); echo $output->header(), $output->heading(new lang_string('customfields', 'attendance')), $output->render($outputpage), $output->footer();