Merge branch 'MDL-38612-master-int' of git://github.com/FMCorz/moodle
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 3 Apr 2013 23:15:34 +0000 (01:15 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Wed, 3 Apr 2013 23:15:34 +0000 (01:15 +0200)
1  2 
mod/url/mod_form.php

@@@ -50,8 -50,9 +50,10 @@@ class mod_url_mod_form extends moodlefo
          //-------------------------------------------------------
          $mform->addElement('header', 'content', get_string('contentheader', 'url'));
          $mform->addElement('url', 'externalurl', get_string('externalurl', 'url'), array('size'=>'60'), array('usefilepicker'=>true));
 +        $mform->setType('externalurl', PARAM_URL);
          $mform->addRule('externalurl', null, 'required', null, 'client');
+         $mform->setExpanded('content');
          //-------------------------------------------------------
          $mform->addElement('header', 'optionssection', get_string('optionsheader', 'url'));