Skip to content
Browse files

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

… MOODLE_20_STABLE
  • Loading branch information...
2 parents c03a854 + fdd6b2f commit 019e897604d6759dd1ce1ac0a10c23fe02123693 Sam Hemelryk committed Oct 4, 2011
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',

0 comments on commit 019e897

Please sign in to comment.
Something went wrong with that request. Please try again.