Hi,
I'm working on the autogroup function and I'm trying to add a parameter to the redirect url. When you press a submit button (not the actual submit button which redirects to group/index.php) or the preview button you will be redirected to autogroup.php with only the course id as a parameter.
I'm trying to add a new parameter, my approach was to add
$value = optional_param('new_param', array(), PARAM_INT);
the first time, $value will be empty, in that case a value will be assigned.
I changed
$PAGE->set_url('/group/autogroup.php', array('courseid' => $courseid));
to
$PAGE->set_url('/group/autogroup.php', array('courseid' => $courseid, 'new_param' => $value));
but still, the courseid is the only parameter...