mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-51267 mod: move the changes from the API to the form file
This commit is contained in:
parent
f3eb9951d1
commit
bc577c541f
4 changed files with 12 additions and 11 deletions
|
@ -55,8 +55,11 @@ class mod_resource_mod_form extends moodleform_mod {
|
|||
}
|
||||
$mform->addRule('name', null, 'required', null, 'client');
|
||||
$mform->addRule('name', get_string('maximumchars', '', 255), 'maxlength', 255, 'client');
|
||||
$this->standard_intro_elements(null, array('rows' => 5));
|
||||
|
||||
$this->standard_intro_elements();
|
||||
$element = $mform->getElement('introeditor');
|
||||
$attributes = $element->getAttributes();
|
||||
$attributes['rows'] = 5;
|
||||
$element->setAttributes($attributes);
|
||||
$filemanager_options = array();
|
||||
$filemanager_options['accepted_types'] = '*';
|
||||
$filemanager_options['maxbytes'] = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue