$choices["1"] = get_string("htmlformat");
$mform->addElement('select', 'mailformat', get_string('emailformat'), $choices);
$mform->setType('mailformat', PARAM_INT);
+ $mform->setAdvanced('mailformat');
if (!empty($CFG->unicodedb) && !empty($CFG->allowusermailcharset)) {
$mailcharset = get_user_preferences('mailcharset', '0', $user->id);
$mform->addElement('select', 'mailcharset', get_string('emailcharset'), $choices);
$mform->setType('mailcharset', PARAM_CLEAN);
$mform->setDefault('mailcharset', $mailcharset);
+ $mform->setAdvanced('mailcharset');
}
+
$choices = array();
$choices['0'] = get_string('emaildigestoff');
$choices['1'] = get_string('emaildigestcomplete');
$mform->addElement('select', 'maildigest', get_string('emaildigest'), $choices);
$mform->setType('maildigest', PARAM_INT);
$mform->setDefault('maildigest', 0);
+ $mform->setAdvanced('maildigest');
$choices = array();
$choices["1"] = get_string("autosubscribeyes");
$mform->addElement('select', 'autosubscribe', get_string('autosubscribe'), $choices);
$mform->setType('autosubscribe', PARAM_INT);
$mform->setDefault('autosubscribe', 0);
+ $mform->setAdvanced('autosubscribe');
if (!empty($CFG->forum_trackreadposts)) {
$choices = array();
$mform->setType('trackforums', PARAM_INT);
$mform->setDefault('trackforums', 0);
}
+ $mform->setAdvanced('trackforums');
if ($CFG->htmleditor) {
$choices = array();
$mform->setType('htmleditor', PARAM_INT);
$mform->setDefault('htmleditor', 1);
}
+ $mform->setAdvanced('htmleditor');
$choices = array();
$choices["0"] = get_string("ajaxno");
if (empty($CFG->enableajax)) {
$mform->hardFreeze('ajax');
}
+ $mform->setAdvanced('ajax');
$mform->addElement('text', 'city', get_string('city'), 'maxlength="100" size="25"');
$mform->setType('city', PARAM_MULTILANG);
$choices = get_list_of_countries();
- $choices[0] = get_string('selectacountry').'...';
+ $choices[0] = get_string('selectacountry').'...';
$mform->addElement('select', 'country', get_string('selectacountry'), $choices);
$mform->setType('country', PARAM_ALPHA);
$mform->addRule('country', $strrequired, 'required', null, 'client');
$choices += get_list_of_themes();
$mform->addElement('select', 'theme', get_string('preferredtheme'), $choices);
$mform->setType('theme', PARAM_ALPHANUM);
+ $mform->setAdvanced('theme');
}
$mform->addElement('htmleditor', 'description', get_string('userdescription'));
$mform->addElement('select', 'screenreader', get_string('screenreaderuse'), $choices);
$mform->setType('screenreader', PARAM_INT);
$mform->setDefault('screenreader', 0);
+ $mform->setAdvanced('screenreader');
$maxbytes = get_max_upload_file_size($CFG->maxbytes, $course->maxbytes);
if (!empty($CFG->gdversion) and $maxbytes and (empty($CFG->disableuserimages) or $userupdate)) {
/// Moodle optional fields
- $mform->addElement('header', 'moodle_optional', get_string('followingoptional'));
+ $mform->addElement('header', 'moodle_optional', get_string('optional', 'form'));
+ $mform->setAdvanced('moodle_optional');
$mform->addElement('text', 'url', get_string('webpage'), 'maxlength="255" size="50"');
$mform->setType('url', PARAM_URL);