mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 08:26:37 +02:00
MDL-22574, filepicker conversion for user and group settings
This commit is contained in:
parent
246a9b05ba
commit
92b143f145
2 changed files with 2 additions and 2 deletions
|
@ -43,7 +43,7 @@ class group_form extends moodleform {
|
||||||
$options = array(get_string('no'), get_string('yes'));
|
$options = array(get_string('no'), get_string('yes'));
|
||||||
$mform->addElement('select', 'hidepicture', get_string('hidepicture'), $options);
|
$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');
|
$mform->addHelpButton('imagefile', 'newpicture', 'group');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -245,7 +245,7 @@ function useredit_shared_definition(&$mform, $editoroptions = null) {
|
||||||
$mform->addElement('checkbox', 'deletepicture', get_string('delete'));
|
$mform->addElement('checkbox', 'deletepicture', get_string('delete'));
|
||||||
$mform->setDefault('deletepicture',false);
|
$mform->setDefault('deletepicture',false);
|
||||||
|
|
||||||
$mform->addElement('file', 'imagefile', get_string('newpicture'));
|
$mform->addElement('filepicker', 'imagefile', get_string('newpicture'));
|
||||||
$mform->addHelpButton('imagefile', 'newpicture');
|
$mform->addHelpButton('imagefile', 'newpicture');
|
||||||
|
|
||||||
$mform->addElement('text', 'imagealt', get_string('imagealt'), 'maxlength="100" size="30"');
|
$mform->addElement('text', 'imagealt', get_string('imagealt'), 'maxlength="100" size="30"');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue