<?php //$Id$

class profile_field_text extends profile_field_base {

    function display_field_add(&$mform) {
        $size = $this->field->param1;
        $maxlength = $this->field->param2;

        /// Create the form field
        $mform->addElement('text', $this->inputname, format_string($this->field->name), 'maxlength="'.$maxlength.'" size="'.$size.'" ');
        $mform->setType($this->inputname, PARAM_MULTILANG);
    }

}

?>
