From: poltawski Date: Tue, 29 Jan 2008 16:22:02 +0000 (+0000) Subject: MDL-13226 - allow user digest settings to be set with bulk user actions X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f58e6d26f27156578ff8d782b4136be8ae7deddc;p=moodle.git MDL-13226 - allow user digest settings to be set with bulk user actions merged from MOODLE_19_STABLE --- diff --git a/admin/uploaduser.php b/admin/uploaduser.php index 595493c771..d47fc282bb 100755 --- a/admin/uploaduser.php +++ b/admin/uploaduser.php @@ -66,7 +66,7 @@ $returnurl = $CFG->wwwroot.'/'.$CFG->admin.'/uploaduser.php'; $bulknurl = $CFG->wwwroot.'/'.$CFG->admin.'/user/user_bulk.php'; // array of all valid fields for validation -$STD_FIELDS = array('firstname', 'lastname', 'username', 'email', 'city', 'country', 'lang', 'auth', 'timezone', 'mailformat', 'maildisplay', 'htmleditor', +$STD_FIELDS = array('firstname', 'lastname', 'username', 'email', 'city', 'country', 'lang', 'auth', 'timezone', 'mailformat', 'maildisplay', 'maildigest', 'htmleditor', 'ajax', 'autosubscribe', 'mnethostid', 'institution', 'department', 'idnumber', 'icq', 'phone1', 'phone2', 'address', 'url', 'description', 'oldusername', 'emailstop', 'deleted', 'password'); diff --git a/admin/uploaduser_form.php b/admin/uploaduser_form.php index c18c59857e..b3c05db373 100644 --- a/admin/uploaduser_form.php +++ b/admin/uploaduser_form.php @@ -165,6 +165,11 @@ class admin_uploaduser_form2 extends moodleform { $mform->setDefault('mailformat', 1); $mform->setAdvanced('mailformat'); + $choices = array(0 => get_string('emaildigestoff'), 1 => get_string('emaildigestcomplete'), 2 => get_string('emaildigestsubjects')); + $mform->addElement('select', 'maildigest', get_string('emaildigest'), $choices); + $mform->setDefault('maildigest', 0); + $mform->setAdvanced('maildigest'); + $choices = array(0 => get_string('autosubscribeyes'), 1 => get_string('autosubscribeno')); $mform->addElement('select', 'autosubscribe', get_string('autosubscribe'), $choices); $mform->setDefault('autosubscribe', 1);