original_string: protected function reset_userdata_submissions(stdClass $data) {
          global $DB;
  
          $submissions = $this->get_submissions();
          foreach ($submissions as $submission) {
              $this->delete_submission($submission);
          }
  
          return true;
      }
code: protected function reset_userdata_submissions(stdClass $data) {
          global $DB;
  
          $submissions = $this->get_submissions();
          foreach ($submissions as $submission) {
              $this->delete_submission($submission);
          }
  
          return true;
      }
code_tokens: protected function reset_userdata_submissions ( stdClass $ data ) { global $ DB ; $ submissions = $ this -> get_submissions ( ) ; foreach ( $ submissions as $ submission ) { $ this -> delete_submission ( $ submission ) ; } return true ; }
docstring: Removes all user data related to participants' submissions.
  
  @param stdClass $data The actual course reset settings.
  @return bool|string True on success, error message otherwise.
docstring_tokens: Removes all user data related to participants submissions .