original_string: public function format_for_gradebook(stdClass $grade) {
          $feedbackcomments = $this->get_feedback_comments($grade->id);
          if ($feedbackcomments) {
              return $feedbackcomments->commentformat;
          }
          return FORMAT_MOODLE;
      }
code: public function format_for_gradebook(stdClass $grade) {
          $feedbackcomments = $this->get_feedback_comments($grade->id);
          if ($feedbackcomments) {
              return $feedbackcomments->commentformat;
          }
          return FORMAT_MOODLE;
      }
code_tokens: public function format_for_gradebook ( stdClass $ grade ) { $ feedbackcomments = $ this -> get_feedback_comments ( $ grade -> id ) ; if ( $ feedbackcomments ) { return $ feedbackcomments -> commentformat ; } return FORMAT_MOODLE ; }
docstring: 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
docstring_tokens: If this plugin adds to the gradebook comments field it must specify the format of the text of the comment