Merge commit 'catalyst/MOODLE_19_STABLE' into mdl19-linuxchix
[moodle-linuxchix.git] / user / profile / field / text / field.class.php
blob2c0ae1a45a8c38238e0d3d2aaa5226e2130bf3d4
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;
8 $fieldtype = ($this->field->param3 == 1 ? 'password' : 'text');
10 /// Create the form field
11 $mform->addElement($fieldtype, $this->inputname, format_string($this->field->name), 'maxlength="'.$maxlength.'" size="'.$size.'" ');
12 $mform->setType($this->inputname, PARAM_MULTILANG);