Skip to content

Commit

Permalink
Merge branch 'wip-mdl-34190' of git://github.com/rajeshtaneja/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
danpoltawski committed Jan 29, 2013
2 parents cbb26eb + b2da647 commit 2a090a1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions course/reset_form.php
Expand Up @@ -107,6 +107,11 @@ function load_defaults() {

$defaults = array ('reset_events'=>1, 'reset_logs'=>1, 'reset_roles_local'=>1, 'reset_gradebook_grades'=>1, 'reset_notes'=>1);

// Set student as default in unenrol user list, if role with student archetype exist.
if ($studentrole = get_archetype_roles('student')) {
$defaults['unenrol_users'] = array_keys($studentrole);
}

if ($allmods = $DB->get_records('modules') ) {
foreach ($allmods as $mod) {
$modname = $mod->name;
Expand Down

0 comments on commit 2a090a1

Please sign in to comment.