<?php  //$Id: define.class.php,v 1.1 2007/04/28 03:07:43 ikawhero Exp $

class profile_define_textarea extends profile_define_base {

    function define_form_specific(&$form) {
        /// Default data
        $form->addElement('htmleditor', 'defaultdata', get_string('profiledefaultdata', 'admin'));
        $form->setType('defaultdata', PARAM_CLEAN);

        /// Param 1 for textarea type is the number of columns
        $form->addElement('text', 'param1', get_string('profilefieldcolumns', 'admin'), 'size="6"');
        $form->setDefault('param1', 30);
        $form->setType('param1', PARAM_INT);

        /// Param 2 for text type is the number of rows
        $form->addElement('text', 'param2', get_string('profilefieldrows', 'admin'), 'size="6"');
        $form->setDefault('param2', 10);
        $form->setType('param2', PARAM_INT);
    }

}

?>
