mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +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
|
@ -48,8 +48,11 @@ class mod_url_mod_form extends moodleform_mod {
|
|||
$mform->addElement('url', 'externalurl', get_string('externalurl', 'url'), array('size'=>'60'), array('usefilepicker'=>true));
|
||||
$mform->setType('externalurl', PARAM_RAW_TRIMMED);
|
||||
$mform->addRule('externalurl', null, 'required', null, '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);
|
||||
//-------------------------------------------------------
|
||||
$mform->addElement('header', 'optionssection', get_string('appearance'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue