Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-35615_m24' of git://github.com/rwijaya/moodle into …

…MOODLE_24_STABLE
  • Loading branch information...
commit 86070a3ed9fbaad3e19fe1637313a656b3fed88a 2 parents aebfad5 + 9593527
@nebgor nebgor authored
Showing with 6 additions and 3 deletions.
  1. +6 −3 course/editsection_form.php
View
9 course/editsection_form.php
@@ -20,10 +20,13 @@ function definition() {
$mform = $this->_form;
$course = $this->_customdata['course'];
- $mform->addElement('checkbox', 'usedefaultname', get_string('sectionusedefaultname'));
- $mform->setDefault('usedefaultname', true);
- $mform->addElement('text', 'name', get_string('sectionname'), array('size'=>'30'));
+ $elementgroup = array();
+ $elementgroup[] = $mform->createElement('text', 'name', '', array('size' => '30'));
+ $elementgroup[] = $mform->createElement('checkbox', 'usedefaultname', '', get_string('sectionusedefaultname'));
+ $mform->addGroup($elementgroup, 'name_group', get_string('sectionname'), ' ', false);
+
+ $mform->setDefault('usedefaultname', true);
$mform->setType('name', PARAM_TEXT);
$mform->disabledIf('name','usedefaultname','checked');
Please sign in to comment.
Something went wrong with that request. Please try again.