mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 10:56:56 +02:00
MDL-28483 URL making url field required
This commit is contained in:
parent
6731a04d93
commit
ec3c9dad7b
2 changed files with 2 additions and 1 deletions
|
@ -50,6 +50,7 @@ class mod_url_mod_form extends moodleform_mod {
|
|||
//-------------------------------------------------------
|
||||
$mform->addElement('header', 'content', get_string('contentheader', 'url'));
|
||||
$mform->addElement('url', 'externalurl', get_string('externalurl', 'url'), array('size'=>'60'), array('usefilepicker'=>true));
|
||||
$mform->addRule('externalurl', null, 'required', null, 'client');
|
||||
//-------------------------------------------------------
|
||||
$mform->addElement('header', 'optionssection', get_string('optionsheader', 'url'));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue