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