MDL-14635 fix user profil help icons, merged from 19

This commit is contained in:
jerome 2008-07-03 04:15:23 +00:00
parent 4e2d013f06
commit ab50ec1215
2 changed files with 4 additions and 7 deletions

View File

@ -35,14 +35,11 @@ class user_editadvanced_form extends moodleform {
$mform->setAdvanced('auth');
$mform->addElement('passwordunmask', 'newpassword', get_string('newpassword'), 'size="20"');
$mform->setHelpButton('newpassword', array(false, get_string('leavetokeep'),
false, true, false, get_string('leavetokeep')));
$mform->setHelpButton('newpassword',array('newpassword', get_string('leavetokeep')));
$mform->setType('newpassword', PARAM_RAW);
$mform->addElement('advcheckbox', 'preference_auth_forcepasswordchange', get_string('forcepasswordchange'));
$mform->setHelpButton('preference_auth_forcepasswordchange', array(false, get_string('forcepasswordchangehelp'),
false, true, false, get_string('forcepasswordchangehelp')));
$mform->setHelpButton('preference_auth_forcepasswordchange',array('forcepasswordchange', get_string('forcepasswordchange')));
/// shared fields
useredit_shared_definition($mform);

View File

@ -224,8 +224,8 @@ function useredit_shared_definition(&$mform) {
if ( !empty($CFG->usetags) && has_capability('moodle/tag:create', get_context_instance(CONTEXT_SYSTEM)) ) {
$mform->addElement('header', 'moodle_interests', get_string('interests'));
$mform->addElement('textarea', 'interests', get_string('interestslist'), 'cols="45" rows="3"');
$mform->setHelpButton('interests', array(false, get_string('helpinterestslist'),
false, true, false, get_string('helpinterestslist')));
$mform->setHelpButton('interests', array('interestslist', get_string('helpinterestslist'),
false, true, false));
}
/// Moodle optional fields