adding some strings
[moodle-linuxchix.git] / user / profile / field / text / field.class.php
blobda7c1636e68752eb99c791b1cd3347befb5e23b9
1 <?php //$Id$
3 class profile_field_text extends profile_field_base {
5 function edit_field_add(&$mform) {
6 $size = $this->field->param1;
7 $maxlength = $this->field->param2;
9 /// Create the form field
10 $mform->addElement('text', $this->inputname, format_string($this->field->name), 'maxlength="'.$maxlength.'" size="'.$size.'" ');
11 $mform->setType($this->inputname, PARAM_MULTILANG);