public function format_for_gradebook(stdClass $grade) {
        $feedbackcomments = $this->get_feedback_comments($grade->id);
        if ($feedbackcomments) {
            return $feedbackcomments->commentformat;
        }
        return FORMAT_MOODLE;
    }
public function format_for_gradebook(stdClass $grade) {
        $feedbackcomments = $this->get_feedback_comments($grade->id);
        if ($feedbackcomments) {
            return $feedbackcomments->commentformat;
        }
        return FORMAT_MOODLE;
    }
public function format_for_gradebook ( stdClass $ grade ) { $ feedbackcomments = $ this -> get_feedback_comments ( $ grade -> id ) ; if ( $ feedbackcomments ) { return $ feedbackcomments -> commentformat ; } return FORMAT_MOODLE ; }
If this plugin adds to the gradebook comments field, it must specify the format of the text
of the comment

Only one feedback plugin can push comments to the gradebook and that is chosen by the assignment
settings page.

@param stdClass $grade The grade
@return int
If this plugin adds to the gradebook comments field it must specify the format of the text of the comment