public function edit_field_add($mform) {
        // Create the form field.
        $mform->addElement('editor', $this->inputname, format_string($this->field->name), null, null);
        $mform->setType($this->inputname, PARAM_RAW); // We MUST clean this before display!
    }
public function edit_field_add($mform) {
        // Create the form field.
        $mform->addElement('editor', $this->inputname, format_string($this->field->name), null, null);
        $mform->setType($this->inputname, PARAM_RAW); // We MUST clean this before display!
    }
public function edit_field_add ( $ mform ) { // Create the form field. $ mform -> addElement ( 'editor' , $ this -> inputname , format_string ( $ this -> field -> name ) , null , null ) ; $ mform -> setType ( $ this -> inputname , PARAM_RAW ) ; // We MUST clean this before display! }
Adds elements for this field type to the edit form.
@param moodleform $mform
Adds elements for this field type to the edit form .