protected function reset_userdata_submissions(stdClass $data) {
        global $DB;

        $submissions = $this->get_submissions();
        foreach ($submissions as $submission) {
            $this->delete_submission($submission);
        }

        return true;
    }
protected function reset_userdata_submissions(stdClass $data) {
        global $DB;

        $submissions = $this->get_submissions();
        foreach ($submissions as $submission) {
            $this->delete_submission($submission);
        }

        return true;
    }
protected function reset_userdata_submissions ( stdClass $ data ) { global $ DB ; $ submissions = $ this -> get_submissions ( ) ; foreach ( $ submissions as $ submission ) { $ this -> delete_submission ( $ submission ) ; } return true ; }
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.
Removes all user data related to participants submissions .