addElement('editor', 'defaultdata', get_string('profiledefaultdata', 'admin')); $form->setType('defaultdata', PARAM_RAW); // we have to trust person with capability to edit this default description } function define_editors() { return array('defaultdata'); } }