mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-22574, filepicker conversion for user and group settings
This commit is contained in:
parent
246a9b05ba
commit
92b143f145
@ -43,7 +43,7 @@ class group_form extends moodleform {
|
||||
$options = array(get_string('no'), get_string('yes'));
|
||||
$mform->addElement('select', 'hidepicture', get_string('hidepicture'), $options);
|
||||
|
||||
$mform->addElement('file', 'imagefile', get_string('newpicture', 'group'));
|
||||
$mform->addElement('filepicker', 'imagefile', get_string('newpicture', 'group'));
|
||||
$mform->addHelpButton('imagefile', 'newpicture', 'group');
|
||||
}
|
||||
|
||||
|
@ -245,7 +245,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null) {
|
||||
$mform->addElement('checkbox', 'deletepicture', get_string('delete'));
|
||||
$mform->setDefault('deletepicture',false);
|
||||
|
||||
$mform->addElement('file', 'imagefile', get_string('newpicture'));
|
||||
$mform->addElement('filepicker', 'imagefile', get_string('newpicture'));
|
||||
$mform->addHelpButton('imagefile', 'newpicture');
|
||||
|
||||
$mform->addElement('text', 'imagealt', get_string('imagealt'), 'maxlength="100" size="30"');
|
||||
|
Loading…
x
Reference in New Issue
Block a user