. // Page redirected to when user clicks on modname at gradebook page defined('MOODLE_INTERNAL') || die(); $id = required_param('id', PARAM_INT); // Course module ID $itemnumber = optional_param('itemnumber', 0, PARAM_INT); // Item number, may be != 0 for activities that allow more than one grade per user $userid = optional_param('userid', 0, PARAM_INT); // Graded user ID (optional) redirect('view.php');