Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge branch 'MDL-29621_21_wip' of git://github.com/grabs/moodle into…

… MOODLE_21_STABLE
  • Loading branch information...
commit 133173e21384b2f282f3d5ea3676b5e94e6a2a95 2 parents 91a7a78 + 96909b1
@samhemelryk samhemelryk authored
View
10 mod/feedback/item/captcha/captcha_form.php
@@ -16,8 +16,14 @@ function definition() {
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
$mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
- $mform->addElement('text', 'name', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
- $mform->addElement('text', 'label', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
+ $mform->addElement('text',
+ 'name',
+ get_string('item_name', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_NAME_TEXTBOX_SIZE, 'maxlength'=>255));
+ $mform->addElement('text',
+ 'label',
+ get_string('item_label', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE, 'maxlength'=>255));
$mform->addElement('select',
'presentation',
View
5 mod/feedback/item/feedback_item_form_class.php
@@ -31,7 +31,10 @@ function definition() {
$common['items']
);
$mform->addHelpButton('dependitem', 'depending', 'feedback');
- $mform->addElement('text', 'dependvalue', get_string('dependvalue', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
+ $mform->addElement('text',
+ 'dependvalue',
+ get_string('dependvalue', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE, 'maxlength'=>255));
}else {
$mform->addElement('hidden', 'dependitem', 0);
$mform->setType('dependitem', PARAM_INT);
View
10 mod/feedback/item/info/info_form.php
@@ -18,8 +18,14 @@ function definition() {
$mform->addElement('hidden', 'required', 0);
$mform->setType('required', PARAM_INT);
- $mform->addElement('text', 'name', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
- $mform->addElement('text', 'label', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
+ $mform->addElement('text',
+ 'name',
+ get_string('item_name', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_NAME_TEXTBOX_SIZE, 'maxlength'=>255));
+ $mform->addElement('text',
+ 'label',
+ get_string('item_label', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE, 'maxlength'=>255));
$options=array();
$options[1] = get_string('responsetime', 'feedback');
View
10 mod/feedback/item/multichoice/multichoice_form.php
@@ -17,8 +17,14 @@ function definition() {
$mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
- $mform->addElement('text', 'name', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
- $mform->addElement('text', 'label', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
+ $mform->addElement('text',
+ 'name',
+ get_string('item_name', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_NAME_TEXTBOX_SIZE, 'maxlength'=>255));
+ $mform->addElement('text',
+ 'label',
+ get_string('item_label', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE, 'maxlength'=>255));
$mform->addElement('select',
'horizontal',
View
10 mod/feedback/item/multichoicerated/multichoicerated_form.php
@@ -17,8 +17,14 @@ function definition() {
$mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
- $mform->addElement('text', 'name', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
- $mform->addElement('text', 'label', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
+ $mform->addElement('text',
+ 'name',
+ get_string('item_name', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_NAME_TEXTBOX_SIZE, 'maxlength'=>255));
+ $mform->addElement('text',
+ 'label',
+ get_string('item_label', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE, 'maxlength'=>255));
$mform->addElement('select',
'horizontal',
View
24 mod/feedback/item/numeric/numeric_form.php
@@ -17,12 +17,24 @@ function definition() {
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
$mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
- $mform->addElement('text', 'name', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
- $mform->addElement('text', 'label', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
-
- $mform->addElement('text', 'rangefrom', get_string('numeric_range_from', 'feedback'), array('size="10"','maxlength="10"'));
-
- $mform->addElement('text', 'rangeto', get_string('numeric_range_to', 'feedback'), array('size="10"','maxlength="10"'));
+ $mform->addElement('text',
+ 'name',
+ get_string('item_name', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_NAME_TEXTBOX_SIZE, 'maxlength'=>255));
+ $mform->addElement('text',
+ 'label',
+ get_string('item_label', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE, 'maxlength'=>255));
+
+ $mform->addElement('text',
+ 'rangefrom',
+ get_string('numeric_range_from', 'feedback'),
+ array('size'=>10, 'maxlength'=>10));
+
+ $mform->addElement('text',
+ 'rangeto',
+ get_string('numeric_range_to', 'feedback'),
+ array('size'=>10,'maxlength'=>10));
parent::definition();
$this->set_data($item);
View
10 mod/feedback/item/textarea/textarea_form.php
@@ -16,8 +16,14 @@ function definition() {
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
$mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
- $mform->addElement('text', 'name', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
- $mform->addElement('text', 'label', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
+ $mform->addElement('text',
+ 'name',
+ get_string('item_name', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_NAME_TEXTBOX_SIZE, 'maxlength'=>255));
+ $mform->addElement('text',
+ 'label',
+ get_string('item_label', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE, 'maxlength'=>255));
$mform->addElement('select',
'itemwidth',
View
10 mod/feedback/item/textfield/textfield_form.php
@@ -16,8 +16,14 @@ function definition() {
$mform->addElement('header', 'general', get_string($this->type, 'feedback'));
$mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
- $mform->addElement('text', 'name', get_string('item_name', 'feedback'), array('size="'.FEEDBACK_ITEM_NAME_TEXTBOX_SIZE.'"','maxlength="255"'));
- $mform->addElement('text', 'label', get_string('item_label', 'feedback'), array('size="'.FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE.'"','maxlength="255"'));
+ $mform->addElement('text',
+ 'name',
+ get_string('item_name', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_NAME_TEXTBOX_SIZE, 'maxlength'=>255));
+ $mform->addElement('text',
+ 'label',
+ get_string('item_label', 'feedback'),
+ array('size'=>FEEDBACK_ITEM_LABEL_TEXTBOX_SIZE, 'maxlength'=>255));
$mform->addElement('select',
'itemsize',
Please sign in to comment.
Something went wrong with that request. Please try again.