MDL-14232 group import moved to group UI, fixed regressions and improved coding style - in future we should definitely improve the navigation structure of groups interface

This commit is contained in:
Petr Skoda 2010-10-12 08:34:52 +00:00
parent 19eb73cdf3
commit 81ed4632fc
4 changed files with 74 additions and 137 deletions

View file

@ -100,6 +100,10 @@ switch ($action) {
redirect(new moodle_url('/group/autogroup.php', array('courseid'=>$courseid)));
break;
case 'showimportgroups':
redirect(new moodle_url('/group/import.php', array('id'=>$courseid)));
break;
case 'showgroupsettingsform':
redirect(new moodle_url('/group/group.php', array('courseid'=>$courseid, 'id'=>$groupids[0])));
break;
@ -210,6 +214,9 @@ echo '<p><input type="submit" name="act_showcreateorphangroupform" id="showcreat
echo '<p><input type="submit" name="act_showautocreategroupsform" id="showautocreategroupsform" value="'
. get_string('autocreategroups', 'group') . '" /></p>'."\n";
echo '<p><input type="submit" name="act_showimportgroups" id="showimportgroups" value="'
. get_string('importgroups') . '" /></p>'."\n";
echo '</td>'."\n";
echo '<td>'."\n";