Permalink
Browse files

MDL-35221 mod_feedback: replace checkbox with advcheckbox for all req…

…uirable feedback question types
  • Loading branch information...
kwiliarty committed Sep 4, 2012
1 parent 5f1d8f2 commit d3da4d8c1a709d0f803c6e8aaa12650840f71028
@@ -29,7 +29,7 @@ public function definition() {
$mform =& $this->_form;
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
- $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
+ $mform->addElement('advcheckbox', 'required', get_string('required', 'feedback'), '' , null , array(0, 1));
$mform->addElement('text',
'name',
get_string('item_name', 'feedback'),
@@ -29,7 +29,7 @@ public function definition() {
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
- $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
+ $mform->addElement('advcheckbox', 'required', get_string('required', 'feedback'), '' , null , array(0, 1));
$mform->addElement('text',
'name',
@@ -29,7 +29,7 @@ public function definition() {
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
- $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
+ $mform->addElement('advcheckbox', 'required', get_string('required', 'feedback'), '' , null , array(0, 1));
$mform->addElement('text',
'name',
@@ -29,7 +29,7 @@ public function definition() {
$mform =& $this->_form;
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
- $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
+ $mform->addElement('advcheckbox', 'required', get_string('required', 'feedback'), '' , null , array(0, 1));
$mform->addElement('text',
'name',
@@ -28,7 +28,7 @@ public function definition() {
$mform =& $this->_form;
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
- $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
+ $mform->addElement('advcheckbox', 'required', get_string('required', 'feedback'), '' , null , array(0, 1));
$mform->addElement('text',
'name',
@@ -28,7 +28,7 @@ public function definition() {
$mform =& $this->_form;
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
- $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
+ $mform->addElement('advcheckbox', 'required', get_string('required', 'feedback'), '' , null , array(0, 1));
$mform->addElement('text',
'name',

0 comments on commit d3da4d8

Please sign in to comment.