Permalink
Browse files

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

…MOODLE_24_STABLE
  • Loading branch information...
2 parents aebfad5 + 9593527 commit 86070a3ed9fbaad3e19fe1637313a656b3fed88a @nebgor nebgor committed Mar 12, 2013
Showing with 6 additions and 3 deletions.
  1. +6 −3 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');

0 comments on commit 86070a3

Please sign in to comment.