Permalink
Browse files

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

…uirable feedback question types
  • Loading branch information...
1 parent e4592b2 commit ce98dd31911f13f39118bf39a9ecfc03e2c7169b @kwiliarty kwiliarty committed Sep 4, 2012
@@ -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 ce98dd3

Please sign in to comment.