mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
Merge branch 'MDL-40669' of https://github.com/paulholden/moodle
This commit is contained in:
commit
0709dfcf8b
@ -86,7 +86,7 @@ $today = time();
|
||||
$today = make_timestamp(date('Y', $today), date('m', $today), date('d', $today), 0, 0, 0);
|
||||
|
||||
// array of all valid fields for validation
|
||||
$STD_FIELDS = array('id', 'username', 'email',
|
||||
$STD_FIELDS = array('id', 'username', 'email', 'emailstop',
|
||||
'city', 'country', 'lang', 'timezone', 'mailformat',
|
||||
'maildisplay', 'maildigest', 'htmleditor', 'autosubscribe',
|
||||
'institution', 'department', 'idnumber', 'skype',
|
||||
|
@ -231,6 +231,11 @@ class admin_uploaduser_form2 extends moodleform {
|
||||
$mform->setDefault('maildisplay', core_user::get_property_default('maildisplay'));
|
||||
$mform->addHelpButton('maildisplay', 'emaildisplay');
|
||||
|
||||
$choices = array(0 => get_string('emailenable'), 1 => get_string('emaildisable'));
|
||||
$mform->addElement('select', 'emailstop', get_string('emailstop'), $choices);
|
||||
$mform->setDefault('emailstop', core_user::get_property_default('emailstop'));
|
||||
$mform->setAdvanced('emailstop');
|
||||
|
||||
$choices = array(0 => get_string('textformat'), 1 => get_string('htmlformat'));
|
||||
$mform->addElement('select', 'mailformat', get_string('emailformat'), $choices);
|
||||
$mform->setDefault('mailformat', core_user::get_property_default('mailformat'));
|
||||
|
@ -723,6 +723,7 @@ $string['emailresetconfirmationsubject'] = '{$a}: Password reset request';
|
||||
$string['emailresetconfirmsent'] = 'An email has been sent to your address at <b>{$a}</b>.
|
||||
<br />It contains easy instructions to confirm and complete this password change.
|
||||
If you continue to have difficulty, contact the site administrator.';
|
||||
$string['emailstop'] = 'Email stop';
|
||||
$string['emailtoprivatefiles'] = 'You can also e-mail files as attachments straight to your private files space. Simply attach your files to an e-mail and send it to {$a}';
|
||||
$string['emailtoprivatefilesdenied'] = 'Your administrator has disabled the option to upload your own private files.';
|
||||
$string['emailvia'] = '{$a->name} (via {$a->siteshortname})';
|
||||
|
@ -680,7 +680,7 @@ class core_user {
|
||||
$fields['lastname'] = array('type' => PARAM_NOTAGS, 'null' => NULL_NOT_ALLOWED);
|
||||
$fields['surname'] = array('type' => PARAM_NOTAGS, 'null' => NULL_NOT_ALLOWED);
|
||||
$fields['email'] = array('type' => PARAM_RAW_TRIMMED, 'null' => NULL_NOT_ALLOWED);
|
||||
$fields['emailstop'] = array('type' => PARAM_INT, 'null' => NULL_NOT_ALLOWED);
|
||||
$fields['emailstop'] = array('type' => PARAM_INT, 'null' => NULL_NOT_ALLOWED, 'default' => 0);
|
||||
$fields['icq'] = array('type' => PARAM_NOTAGS, 'null' => NULL_NOT_ALLOWED);
|
||||
$fields['skype'] = array('type' => PARAM_NOTAGS, 'null' => NULL_ALLOWED);
|
||||
$fields['aim'] = array('type' => PARAM_NOTAGS, 'null' => NULL_NOT_ALLOWED);
|
||||
|
Loading…
x
Reference in New Issue
Block a user