MDL-28483 URL making url field required

This commit is contained in:
Adrian 2011-09-22 14:51:32 +05:30 committed by Ankit Kumar Agarwal
parent 6731a04d93
commit ec3c9dad7b
2 changed files with 2 additions and 1 deletions

View file

@ -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'));